Skip to content

nav2 rviz plugin action server timeout fix - #919

Merged
4 commits merged into
ros-navigation:masterfrom
mlherd:nav2-rviz-plugin
Jul 11, 2019
Merged

4 commits merged into
ros-navigation:masterfrom
mlherd:nav2-rviz-plugin

Conversation

@mlherd

@mlherd mlherd commented Jul 10, 2019

Copy link
Copy Markdown
Contributor

Basic Info

Info Please fill out this column
Ticket(s) this addresses (#901 )
Primary OS tested on (Ubuntu 18.04)
Robotic platform tested on (Gazebo simulation of TB3 Burger, RVIZ)

Added a timeout to wait_for_action_server(). Previously, it was causing RVIZ to crash if the action server never gets available. It usually happens if the initial pose is not set or Gazebo is not running. Now, it waits for the action server to be available for 5 seconds and than if it is not available it prints an error message and return. If the action sever is not available, this will cause RVIZ to freeze for 5 seconds, but at least RVIZ doesn't crash and works as expected.

I'd like to request maintainer: to review this PR.

@mlherd mlherd added 1 - High High Priority for review labels Jul 10, 2019

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please fix up the commit history by rebasing or whatever, otherwise there will likely be merge issues

@orduno orduno left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just some minor style suggestions.

@ghost

ghost commented Jul 10, 2019

Copy link
Copy Markdown

You have a few linter failures on this PR as well. Please fix them before merging.

@orduno

orduno commented Jul 10, 2019

Copy link
Copy Markdown
Contributor

Could we launch a separate thread to avoid causing RVIZ to freeze while fulfilling this request?

@mhpanah mhpanah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple minor issues. Please make sure it passes linter and also rebase.

@mlherd
mlherd force-pushed the nav2-rviz-plugin branch from b546c6b to 1fef255 Compare July 10, 2019 18:26
@mlherd mlherd closed this Jul 10, 2019
@mlherd
mlherd force-pushed the nav2-rviz-plugin branch from 1fef255 to fd16483 Compare July 10, 2019 19:57
@mlherd mlherd reopened this Jul 10, 2019

@mhpanah mhpanah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

@ghost
ghost merged commit b5b3246 into ros-navigation:master Jul 11, 2019
mlherd added a commit to mlherd/navigation2 that referenced this pull request Jul 14, 2019
* changed error message

* changed the error message

* forgot to add return after the error message

* fixed the coding sytle. It should pass the linter test now
@mlherd mlherd removed the for review label Jul 16, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 - High High Priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants