ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You want to use a list of tuples of ints, not a float32 list - the message type is incorrect. You should create a custom one for this.

Relevant question with some hints about use of tuples and lists in ROS messages:

https://answers.ros.org/question/217835/why-does-rospy-instantiate-msg-arrays-as-lists-but-deserialize-them-as-tuples/

You want to use a list of tuples of ints, not a float32 list - the message type is incorrect. You should create a custom one message for this.

Relevant question with some hints about use of tuples and lists in ROS messages:

https://answers.ros.org/question/217835/why-does-rospy-instantiate-msg-arrays-as-lists-but-deserialize-them-as-tuples/

You want to use a list of tuples of ints, not a float32 list - the message type is incorrect. You should create a custom message for this.

Relevant question questions with some hints about use of tuples and lists in ROS messages:

  • https://answers.ros.org/question/217835/why-does-rospy-instantiate-msg-arrays-as-lists-but-deserialize-them-as-tuples/

  • https://answers.ros.org/question/204524/publish-multiarray-python-msg/