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

Revision history [back]

You can do that only if you know the type of the messages at compilation time. In that case, you can use the instantiate method of the class MessageInstance.