ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ROS Matlab Compressed Image?

asked 2015-02-27 10:49:43 -0600

soulslicer gravatar image

Node = rosmatlab.node('Test','http://localhost:11311'); subscriber = Node.addSubscriber('/sonar_image/compressed', 'sensor_msgs/CompressedImage', 10); subscriber.addCustomMessageListener({@test_fun, Node.Node});

Good day, I have code as such. It doesn't seem to get anything though. My function does callback test_fun, however, the message returned doesn't seem to have anything

edit retag flag offensive close merge delete

Comments

did you have the /sonar_image message defined in your /usr/local/MATLAB/R20XXa/toolbox/psp/rosmatlab/jars/ ?????

Andromeda gravatar image Andromeda  ( 2015-02-28 01:06:15 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-01 09:46:58 -0600

soulslicer gravatar image

okay nvmind im able to get the data, but it's a compressed jpeg object. How do i decompress it in matlab for viewing

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-02-27 10:49:43 -0600

Seen: 201 times

Last updated: Feb 27 '15