ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I would recommend using a custom message with all the data you require (timestamp, position, velocity, orientation, object type), and then have a single node with a single publisher which publishes many things onto this topic. If this, for some reason, is not advisable in your use case, create one publisher per object type and do some copy pasting. Or perhaps preferable, make a c++ template and just call that.