ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

ros_info float32[] c++

asked 2014-11-24 23:04:35 -0500

chris_ gravatar image

I'm new to ROS and am trying to print part of LaserScan message, in particular the ranges bit. Is there a format identifier or some other nice way to print this float32 array out?

Thanks

ROS Hydro

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-25 04:23:55 -0500

dornhege gravatar image

Not the vector itself, but you can print the whole message with ROS_INFO_STREAM.

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: 2014-11-24 23:01:16 -0500

Seen: 829 times

Last updated: Nov 25 '14