No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
|
rospy_message_converter package from rospy_message_converter reporospy_message_converter |
Package Summary
| Tags | No category tags. |
| Version | 0.5.0 |
| License | BSD |
| Build type | CATKIN |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/baalexander/rospy_message_converter.git |
| VCS Type | git |
| VCS Version | master |
| Last Updated | 2019-05-06 |
| Dev Status | MAINTAINED |
| Released | RELEASED |
Package Description
Converts between Python dictionaries and JSON to rospy messages.
Additional Links
Maintainers
- Martin Günther
Authors
- Brandon Alexander
rospy_message_converter
Rospy_message_converter is a lightweight ROS package and Python library to convert from Python dictionaries and JSON messages to rospy messages, and vice versa.
Usage
Convert a dictionary to a ROS message
from rospy_message_converter import message_converter
from std_msgs.msg import String
dictionary = { 'data': 'Howdy' }
message = message_converter.convert_dictionary_to_ros_message('std_msgs/String', dictionary)
Convert a ROS message to a dictionary
from rospy_message_converter import message_converter
from std_msgs.msg import String
message = String(data = 'Howdy')
dictionary = message_converter.convert_ros_message_to_dictionary(message)
Convert JSON to a ROS message
from rospy_message_converter import json_message_converter
from std_msgs.msg import String
json_str = '{"data": "Hello"}'
message = json_message_converter.convert_json_to_ros_message('std_msgs/String', json_str)
Convert a ROS message to JSON
from rospy_message_converter import json_message_converter
from std_msgs.msg import String
message = String(data = 'Hello')
json_str = json_message_converter.convert_ros_message_to_json(message)
Test
To run the tests:
catkin_make test
License
Project is released under the BSD license.
Travis - Continuous Integration
ROS Buildfarm
| binary deb | source deb | devel | doc | |
|---|---|---|---|---|
| indigo | ||||
| kinetic | ||||
| lunar | ||||
| melodic |
CHANGELOG
Could not convert RST to MD: No such file or directory - pandoc
Wiki Tutorials
See ROS Wiki Tutorials for more details.
Source Tutorials
Not currently indexed.
Launch files
No launch files found
Services
No service files found
Plugins
No plugins found.
Recent questions tagged rospy_message_converter at answers.ros.org
|
rospy_message_converter package from rospy_message_converter reporospy_message_converter |
Package Summary
| Tags | No category tags. |
| Version | 0.2.0 |
| License | BSD |
| Build type | CATKIN |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/baalexander/rospy_message_converter.git |
| VCS Type | git |
| VCS Version | hydro-devel |
| Last Updated | 2013-07-15 |
| Dev Status | MAINTAINED |
| Released | UNRELEASED |
Package Description
Converts between Python dictionaries and JSON to rospy messages.
Additional Links
Maintainers
- Brandon Alexander
Authors
- Brandon Alexander
Could not convert RST to MD: No such file or directory - pandoc
CHANGELOG
Could not convert RST to MD: No such file or directory - pandoc
Wiki Tutorials
See ROS Wiki Tutorials for more details.
Source Tutorials
Not currently indexed.
Dependant Packages
Launch files
No launch files found
Messages
Services
No service files found
Plugins
No plugins found.