[ROS2] Understanding get_msg_class

asked 2021-01-21 13:19:28 -0500

aniemi gravatar image

Having seen this post, I have been trying to implement a generic subscriber using get_msg_class() from ros2topic.api.

However, I'm struggling to understand the conditions required for get_msg_class() to be able to determine the type of a message from another node.

This is my current best guess: 1. The publisher must be alive. 2. The publisher must have published at least one message.

Is this correct? Could someone help me understand runtime type introspection and the requirements of get_msg_class().

edit retag flag offensive close merge delete

Comments

Take a look here: link

Andromeda gravatar image Andromeda  ( 2023-07-08 14:14:11 -0500 )edit