Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

republish image from rospy node to roscpp node

Hi,

I just want to know the right format to republish image data from a python node to a cpp node, because I keep getting an error. My python node is publishing a CompressedImage (from sensor_msgs.msg import CompressedImage) where the image data came initially as an array before adding it to a CompressedImage object, then I do republish so that my cpp node can pick it up. The image below shows my "/output/image_raw/compressed1" topic publishing the CompressedImage. The only way my republisher can subscribe is if I use "raw" as my "in_transport," (which I assume is not correct?) otherwise republish does not subscribe.

This is how I call republish from my terminal:

rosrun image_transport republish raw in:=/output/image_raw/compressed1 compressed out:=camera/image_decompressed1

I don't need to publish CompressImage from python specifically. It can be any other way/format (except "theora"), as long as it works.

Thank you for your help! I appreciate it.

republish image from rospy node to roscpp node

Hi,

I just want to know the right format to republish image data from a python node to a cpp node, because I keep getting an error. My python node is publishing a CompressedImage (from sensor_msgs.msg import CompressedImage) where the image data came initially as an array before adding it to a CompressedImage object, then I do republish so that my cpp node can pick it up. The image below shows my "/output/image_raw/compressed1" topic publishing the CompressedImage. The only way my republisher can subscribe is if I use "raw" as my "in_transport," (which I assume is not correct?) otherwise republish does not subscribe.

This is how I call republish from my terminal:

rosrun image_transport republish raw in:=/output/image_raw/compressed1 compressed out:=camera/image_decompressed1

I don't need to publish CompressImage from python specifically. It can be any other way/format (except "theora"), as long as it works.

Thank you for your help! I appreciate it.

republish image from rospy node to roscpp node

Hi,

I just want to know the right format to republish image data from a python node to a cpp node, because I keep getting an error. My python node is publishing a CompressedImage (from sensor_msgs.msg import CompressedImage) where the image data came initially as an array before adding it to a CompressedImage object, then I do republish so that my cpp node can pick it up. The image below shows my "/output/image_raw/compressed1" topic publishing the CompressedImage. The only way my republisher can subscribe is if I use "raw" as my "in_transport," (which I assume is not correct?) otherwise republish does not subscribe.

This is how I call republish from my terminal:

rosrun image_transport republish raw in:=/output/image_raw/compressed1 compressed out:=camera/image_decompressed1

I don't need to publish CompressImage from python specifically. It can be any other way/format (except "theora"), as long as it works.

Thank you for your help! I appreciate it.

republish image from rospy node to roscpp node

Hi,

I just want to know the right format to republish image data from a python node to a cpp node, because I keep getting an error. My python node is publishing a CompressedImage (from sensor_msgs.msg import CompressedImage) where the image data came initially as an array before adding it to a CompressedImage object, then I do republish so that my cpp node can pick it up. The image below shows my "/output/image_raw/compressed1" topic publishing the CompressedImage. The only way my republisher can subscribe is if I use "raw" as my "in_transport," (which I assume is not correct?) otherwise republish does not subscribe.

This is how I call republish from my terminal:

rosrun image_transport republish raw in:=/output/image_raw/compressed1 compressed out:=camera/image_decompressed1

I don't need to publish CompressImage from python specifically. It can be any other way/format (except "theora"), as long as it works.

Thank you for your help! I appreciate it.

republish image from rospy node to roscpp node

Hi,

I just want to know the right format to republish image data from a python node to a cpp node, because I keep getting an error. My python node is publishing a CompressedImage (from sensor_msgs.msg import CompressedImage) where the image data came initially as an array before adding it to a CompressedImage object, then I do republish so that my cpp node can pick it up. The image below shows my "/output/image_raw/compressed1" topic publishing the CompressedImage. The only way my republisher can subscribe is if I use "raw" as my "in_transport," (which I assume is not correct?) otherwise republish does not subscribe.

This is how I call republish from my terminal:

rosrun image_transport republish raw in:=/output/image_raw/compressed1 compressed out:=camera/image_decompressed1

I don't need to publish CompressImage from python specifically. It can be any other way/format (except "theora"), as long as it works.

Thank you for your help! I appreciate it.

republish image from rospy node to roscpp node

Hi,

I just want to know the right format to republish image data from a python node to a cpp node, because I keep getting an error. My python node is publishing a CompressedImage (from sensor_msgs.msg import CompressedImage) where the image data came initially as an array before adding it to a CompressedImage object, then I do republish so that my cpp node can pick it up. The image below shows my "/output/image_raw/compressed1" topic publishing the CompressedImage. The only way my republisher can subscribe is if I use "raw" as my "in_transport," (which I assume is not correct?) otherwise republish does not subscribe.

This is how I call republish from my terminal:

rosrun image_transport republish raw in:=/output/image_raw/compressed1 compressed out:=camera/image_decompressed1

I don't need to publish CompressImage from python specifically. It can be any other way/format (except "theora"), as long as it works.

Thank you for your help! I appreciate it.