rosjson Documentation

rosjson: rosjson

rosjson is a Python library for converting ROS messages to JSON (JavaScript Object Notation) representation.

  • Homepage: http://ros.org/wiki/rosjson
  • rosjson is a simple ROS message to JSON converter.

    ROS messages are represented as a dictionary, where each field is a ROS message field. The conversion of types is as follows:

    Code API

    rosjson has only 2 API methods, which are equivalent for converting messages. The rosjson.ros_message_to_json() constrains the type to a rospy.Message instance, whereas rosjson.value_to_json() will convert any valid rospy type.

    rosjson.value_to_json(val)
    rosjson.ros_message_to_json(val)
    
     All Classes Namespaces Files Functions Variables


    rosjson
    Author(s): Ken Conley/kwc@willowgarage.com
    autogenerated on Fri Jan 11 09:42:36 2013