ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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/
2 | No.2 Revision |
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/
3 | No.3 Revision |
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/