Skip to content

Add /amr/cmd_vel command timeout#10

Open
vbucoci-intel wants to merge 1 commit into
gbr1:mainfrom
vbucoci-intel:cmd_vel-command-timeout
Open

Add /amr/cmd_vel command timeout#10
vbucoci-intel wants to merge 1 commit into
gbr1:mainfrom
vbucoci-intel:cmd_vel-command-timeout

Conversation

@vbucoci-intel

Copy link
Copy Markdown

Stop the motors if there are no move commands on /amr/cmd_vel topic for 300ms.

This feature is implemented in other development robots, such as iRobot Create 3.

Stop the motors if there are no move commands on
/amr/cmd_vel topic for 300ms.

@gbr1 gbr1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @vbucoci-intel ! Thank you for your PR.
I would like to suggest you some changes:

  • the safety timeout should be a parameter -> so you can change it from 30ms to Nms (future proof)
  • the time should be from ROS time base and not counting how many times a function is called

thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants