cannot use a bagfile to transport images

asked 2017-09-22 13:12:51 -0600

Younès gravatar image

Hi

I am working with a bag file that publishes these topics :

/clock
/newcollege/camera/image/compressed
/newcollege/odom
/rosout
/rosout_agg

I want to subscribe to a topic to call a callback called image_callback in python. I do :

sub=rospy.Subscriber('/newcollege/camera/image',Image,image_callback,pub_vt)

But I cannot do that.

When I get images from Turtlebot, it works. What could I do ?

edit retag flag offensive close merge delete

Comments

But I cannot do that.

because?

gvdhoorn gravatar image gvdhoorn  ( 2017-09-25 03:09:05 -0600 )edit