Unable to publish float fields with ros2 topic pub
I'm trying to publish a ros2 topic (ros2 version: humble, running on Ubuntu 22.04) that has several fields of type float32 and I can't figure out how to set them. Here's the command line and the result:
pierce@ros2-terminal:~/ssp_ws$ ros2 topic pub /att ssp_interfaces/msg/Attitude "{yaw:1.0}"
Failed to populate field: 'Attitude' object has no attribute 'yaw:1.0'
And here's the message I am trying to publish:
std_msgs/Header header
uint32 time_boot_ms
float32 roll
float32 pitch
float32 yaw
float32 rollspeed
float32 pitchspeed
float32 yawspeed
What am I doing wrong here?