Publish geometry_msgs Pose from command-line
I want to publish to a topic the Pose
of a robot to calculate its inverse kinematics. I am using the command:
ros2 topic pub --once /topic geometry_msgs/msg/Pose "{position:{1,1,1},orientation:{1,1,1,1}}"
but this isn't working and gives the following error
"Failed to populate field: getattr(): attribute name must be string".
What is the correct way to publish a Pose msg to topic.