Ask Your Question
0

Convert coordinates to a ROS Message

asked 2017-12-20 14:31:03 -0500

Chris_ROSuser gravatar image

updated 2017-12-20 15:12:55 -0500

Hello,

I have the task to write a program (C++) to convert the coordinates (x, y, z) into a ROS Message. I have read the coordinates and stored them in array. Now i have convert these coordinates into a ROS Message.

I have no idea how to carry on

Can someone help me like I have to?

Hello,

I have the task to write a program (C++) to convert the coordinates (x, y, z) into a ROS Message. I have read the coordinates and stored them in array. Now i have convert these coordinates into a ROS Message.

Can someone help me like I have to?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-12-20 16:19:15 -0500

http://wiki.ros.org/ROS/Tutorials/Wri... shows you how to publish a string message using C++. You will need to choose an appropriate message type to publish the values you want instead of String, import that message definition instead and set the fields then publish it

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: 2017-12-20 14:31:03 -0500

Seen: 185 times

Last updated: Dec 20 '17