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

How do I find out a topics data type?

asked 2016-10-24 13:02:36 -0500

jacksonkr_ gravatar image

I'm using rosbridge to get camera data from a ros to a non-ros device

I can see the topic /camera/depth/points but I'm not sure what "type" it is. For now I'm using std_msgs/String but I'm not sure if that's it. How can I find out for sure what the "type" is?

realsense ros source:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-24 14:36:42 -0500

gvdhoorn gravatar image

rostopic info /camera/depth/points?

edit flag offensive delete link more


You've got to be kidding me..

Regardless, thanks.

jacksonkr_ gravatar image jacksonkr_  ( 2016-10-24 16:14:36 -0500 )edit

Also, it helps to use rqt for stuff like this so you don't have to memorize command line stuff. The Topic Monitor plugin shows all the topics, their types, and you can monitor their values.

Airuno2L gravatar image Airuno2L  ( 2016-10-25 06:31:24 -0500 )edit

[..] so you don't have to memorize command line stuff.

I guess it's a matter of opinion, but personally I do prefer to "memorize command line stuff", as I don't need to start UIs for something as simple as this. Works across SSH sessions as well, and platforms without X.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-25 06:48:39 -0500 )edit

Question Tools

1 follower


Asked: 2016-10-24 13:02:36 -0500

Seen: 948 times

Last updated: Oct 24 '16