Skip to content

Ros2_message_converter is a lightweight ROS2 package and Python library to convert from Python dictionaries and JSON messages to rclpy messages, and vice versa

License

Notifications You must be signed in to change notification settings

mehmetkillioglu/ros2_message_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ros2_message_converter

Ros2_message_converter is a lightweight ROS2 package and Python library to convert from Python dictionaries and JSON messages to rclpy messages, and vice versa

from ros2_message_converter import message_converter
from std_msgs.msg import String
msg_json = { "data": "Hello, Robot" }
msg_ros = message_converter.convert_dictionary_to_ros_message("std_msgs/String",msg_json)
msg_json = message_converter.convert_ros_message_to_dictionary(msg_ros)

References: uos/rospy_message_converter

About

Ros2_message_converter is a lightweight ROS2 package and Python library to convert from Python dictionaries and JSON messages to rclpy messages, and vice versa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages