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

Revision history [back]

click to hide/show revision 1
initial version

Not necessarily an answer to your question, but an answer to your problem.

Why do you publish the 3 numbers separately? Would it not be easier to use a vector?

You could use the vector3 message from geometry_msgs and publish the 3 points in one go. This would remove a lot of headache, I feel.

If you do want to publish them individually, the answer to the question you posted suggested using a class and save the values as member variables to the class. Have you tried this?