Skip to content

[BUG] Send rqt type Float64MultiArray get error Humble version #338

@ntak17

Description

@ntak17

I try send message data following the picture

Image But I got the error

ERROR] [1768292250.809850875] [get_message_class]: Malformed message_type: sequence
Python eval failed for expression "array('d', [1.57, 0.0])" with an exception "name 'array' is not defined"
Publisher._evaluate_expression(): failed to evaluate expression: "array('d', [1.57, 0.0])" as Python type "None"
Traceback (most recent call last):
File "/opt/ros/humble/lib/python3.10/site-packages/rqt_publisher/publisher.py", line 161, in change_publisher
new_text = handler(self._publishers[publisher_id], topic_name, new_value)
File "/opt/ros/humble/lib/python3.10/site-packages/rqt_publisher/publisher.py", line 262, in _change_publisher_expression
expression, error_prefix, slot_type.name)
AttributeError: 'NoneType' object has no attribute 'name'. Did you mean: 'ne'?

Image

I try send by command (Success)

ros2 topic pub /forward_position_controller/commands std_msgs/msg/Float64MultiArray "data:

publishing #2: std_msgs.msg.Float64MultiArray(layout=std_msgs.msg.MultiArrayLayout(dim=[], data_offset=0), data=[0.0, 0.0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions