Posted by @cwrx777:
Hi @mxgrey ,
I did the following test:
- run office demo
- ros topic echo on
/rmf_traffic/participants
as suggested.
ros2 topic echo --qos-reliability reliable --qos-durability transient_local /rmf_traffic/participants
- use CLI to call
/rmf_traffic/register_participant
to update tinyRobot1 profile. Result: the profile of tinyRobot1 in the /rmf_traffic/participants
message remained the same as initial value.
ros2 service call /rmf_traffic/register_participant rmf_traffic_msgs/srv/RegisterParticipant "{ description: { name: 'tinyRobot1' , owner: 'tinyRobot' , responsiveness: 2 , profile: { footprint: { type: 2 , index: 0 }, vicinity: { type: 2, index: 1 } , shape_context: { circles: [ { radius: 0.55},{radius: 0.70} ] } } } }"
- use CLI to call
/rmf_traffic/register_participant
to add a new robot, e.g. tinyRobot3. Result: tinyRobot3 was listed in the participant list in the /rmf_traffic/participants
message, with profile as specified in the request payload. (the robot was also added in the .rmf_schedule_node.yml
.)
ros2 service call /rmf_traffic/register_participant rmf_traffic_msgs/srv/RegisterParticipant "{ description: { name: 'tinyRobot3' , owner: 'tinyRobot' , responsiveness: 2 , profile: { footprint: { type: 2 , index: 0 }, vicinity: { type: 2, index: 1 } , shape_context: { circles: [ { radius: 0.55},{radius: 0.78} ] } } } }"
- use CLI to call
/rmf_traffic/register_participant
to update tinyRobot3 foorprint. Result: tinyRobot3 profile in the /rmf_traffic/participants
message was updated accordingly. (the robot was also updated in the .rmf_schedule_node.yml
.)
ros2 service call /rmf_traffic/register_participant rmf_traffic_msgs/srv/RegisterParticipant "{ description: { name: 'tinyRobot3' , owner: 'tinyRobot' , responsiveness: 2 , profile: { footprint: { type: 2 , index: 0 }, vicinity: { type: 2, index: 1 } , shape_context: { circles: [ { radius: 0.123},{radius: 0.456} ] } } } }"
I suspect there is a bug in add_or_retrieve_participant or in its underlying code.
Edited by @cwrx777 at 2022-09-08T10:19:38Z