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

Convert coordinates to a ROS Message

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

Chris_ROSuser gravatar image

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

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 -0600

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

Question Tools

1 follower

Stats

Asked: 2017-12-20 14:31:03 -0600

Seen: 359 times

Last updated: Dec 20 '17