void Start()
 {
     // The ROS part
     rosSocket     = transform.GetComponent <RosConnector>().RosSocket;
     publicationId = rosSocket.Advertize(topic, "sensor_msgs/CompressedImage");
     message       = new SensorCompressedImage();
     sequenceId    = 0;
 }
Exemple #2
0
 public CameraImagePublisher2(RosSocket _rosSocket, string _topic, int ql)
 {
     qualityLevel  = ql;
     topic         = _topic;
     rosSocket     = _rosSocket;
     publicationId = rosSocket.Advertize(topic, "sensor_msgs/CompressedImage");
     message       = new SensorCompressedImage();
     sequenceId    = 0;
 }
Exemple #3
0
 private void InitializeMessage()
 {
     message = new SensorCompressedImage();
     message.header.frame_id = FrameId;
     message.format          = "jpeg";
 }