public RomoSensorGatherer(BaseActivity i_oActivity, String i_strRobotID) { super(i_oActivity, i_strRobotID + "-SensorGatherer"); robotID = i_strRobotID.getBytes(); m_oVideoSocket = ZmqHandler.getInstance().obtainVideoSendSocket(); m_lblFPS = (TextView) i_oActivity.findViewById(R.id.lblFPS); start(); }
@Override public void onCreate(Bundle savedInstanceState) { ZmqHandler.initialize(this); m_eRobot = RobotType.RBT_PIRATEDOTTY; // we don't own the robot because it is a service and could have been started // before displaying the UI m_bOwnsRobot = false; // if direct PirateDottyProxy robot = new PirateDottyProxy(this, PirateDottyService.class); // if ipc // RemoteRobotWrapper robot = new Rover2Remote(this, RobotType.RBT_ROVER2, // Rover2Service.class); // robot.setHandler(m_oUiHandler); setRobot(robot); // zmq handler and robot type have to be assigned before calling the parent's // onCreate super.onCreate(savedInstanceState); }
public ZmqSensorsSender() { m_oSensorsSendSocket = ZmqHandler.getInstance().obtainSensorsSendSocket(); }