文件名称:rospy_message_converter:在Python字典和JSON之间转换为ROS消息
文件大小:21KB
文件格式:ZIP
更新时间:2024-05-27 23:55:26
Python
rospy_message_converter Rospy_message_converter是一个轻量级的ROS包和Python库,可将Python字典和JSON消息转换为rospy消息,反之亦然。 用法 将字典转换为ROS消息 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 ) 将ROS消息转换为字典 from rospy_message_converter import message_conve
【文件预览】:
rospy_message_converter-master
----Dockerfile-noetic(528B)
----srv()
--------NestedUint8ArrayTestService.srv(124B)
----CHANGELOG.rst(5KB)
----src()
--------rospy_message_converter()
----CMakeLists.txt(801B)
----.travis.yml(598B)
----test()
--------test_message_converter.py(44KB)
--------__init__.py(0B)
--------test_json_message_converter.py(5KB)
----setup.py(274B)
----README.md(4KB)
----package.xml(1KB)
----Dockerfile-melodic(530B)
----Dockerfile-kinetic(530B)
----.gitignore(18B)
----msg()
--------Uint8ArrayTestMessage.msg(62B)
--------TestArray.msg(14B)
--------NestedUint8ArrayTestMessage.msg(70B)
--------Uint8Array3TestMessage.msg(60B)