-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
I'm trying to set-up a topic command that publishes a std_msgs/msg/Empty message. Here's the relevant snippet (under ros__parameters):
dock:
type: topic
interface_type: std_msgs/msg/Empty
topic_name: dock
deadman_buttons: [3] # X button
message_value: {}
The issue I'm having is that the empty mapping under message_value gets transformed into None when ROS loads the values from the YAML configuration file. Would there be another way of letting joy_teleop know that no fields have to be set for the message it will publish?
For the time being, I've modified my local repository to ignore the message_value field if it is None. I could send that as a PR, but I also wonder is this isn't something that should be fixed "upstream" (rclpy?) so that users can, in general, use empty dictionaries.
Metadata
Metadata
Assignees
Labels
No labels