I have some python code using rosmsg and rospkg, i.e.
rospack = rospkg.RosPack()
lines = rosmsg.get_msg_text(msg_name, False, rospack)
how to do the same in ROS2 with rclpy?
↧