Ask Your Question
1

Python - Compressed Image, Publisher/Subscriber

asked 2015-12-02 17:26:05 -0600

albspe gravatar image

I have implemented the code provided in:

http://wiki.ros.org/rospy_tutorials/T...

however the published topic is empty. It does not contain any information. I tried to dump the topic information into a .txt file and it is empty. when I compare this with the topics published by the camera node, I get the right information (header, frame_id, data).

I printed the msg data structure before "self.image_pub.publish(msg)" (line 87) and the msg structure appears fine.

I have the compressed transport installed and working correctly as I can see the image from the camera node using image_view but not the /output/image (the topic published by the code from the link above). It is obvious I am missing something ... not sure what.

Any suggestion?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-12-03 11:10:11 -0600

albspe gravatar image

updated 2015-12-03 11:10:42 -0600

Solved the problem: the issue was in using a mix of roslaunch and rosrun. Once I called the code from the link from the same roslaunch file with the camera then everything worked fine.

Not 100% sure why though as a rqt_view showed the right node-tree ...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-12-02 17:26:05 -0600

Seen: 1,357 times

Last updated: Dec 03 '15