ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Found a solution:
var imageTopic = new ROSLIB.Topic({
ros : ros,
name : '/camera/image/compressed',
messageType : 'sensor_msgs/CompressedImage'
});
the compressed image can be retrieved via:
var imagedata = "data:image/jpg;base64," + message.data;
2 | No.2 Revision |
Found a solution:
var imageTopic = new ROSLIB.Topic({
ros : ros,
name : '/camera/image/compressed',
messageType : 'sensor_msgs/CompressedImage'
});
the compressed image can be retrieved via:
var imagedata = "data:image/jpg;base64," + message.data;