Ask Your Question
0

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: https://github.com/intel-ros/realsense

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

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

gvdhoorn gravatar image

rostopic info /camera/depth/points?

edit flag offensive delete link more

Comments

You've got to be kidding me..

Regardless, thanks.

jacksonkr_ gravatar imagejacksonkr_ ( 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 imageAiruno2L ( 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 imagegvdhoorn ( 2016-10-25 06:48:39 -0500 )edit

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: 2016-10-24 13:02:36 -0500

Seen: 283 times

Last updated: Oct 24 '16