Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade collision monitor #39

Open
wants to merge 6 commits into
base: humble
Choose a base branch
from
Open

Upgrade collision monitor #39

wants to merge 6 commits into from

Conversation

RBT22
Copy link

@RBT22 RBT22 commented Dec 10, 2024

This PR aims to provide the feature set of the rolling branch for the collision_monitor.
We diverge from the nav2 humble branch and also there are some other modification to make this work:

  • 2 message definitions are added to the nav2_msgs PolygonInstance and PolygonInstanceStamped. These are new msg definitions in geometry_msgs on rolling
  • array_parser is added to the nav2_utils also, which is placed under the nav2_costmap on humble. On rolling the original is deleted, but the moving is not backported.

node->get_parameter("use_realtime_priority", use_realtime_priority);
if (use_realtime_priority) {
try {
nav2_util::setSoftRealTimePriority();
Copy link
Collaborator

Choose a reason for hiding this comment

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

why should this be deleted?

Copy link
Author

Choose a reason for hiding this comment

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

I didn't want to backport that function in this PR but I'm open to discussion it is just a few lines after all xd

@@ -82,7 +82,7 @@ CollisionDetector::on_activate(const rclcpp_lifecycle::State & /*state*/)
}

// Creating timer
timer_ = this->create_timer(
timer_ = this->create_wall_timer(
Copy link
Collaborator

Choose a reason for hiding this comment

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

why?

Copy link
Author

@RBT22 RBT22 Dec 12, 2024

Choose a reason for hiding this comment

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

There is no node method in humble called create_timer.. that is only for jazzy
There is a rclcpp::create_timer but the original in humble is this->create_wall_timer()

*
* On error, error_return is set and the return value could be
* anything, like part of a successful parse. */
std::vector<std::vector<float>> parseVVF(const std::string & input, std::string & error_return);
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this needed? what's the problem with the current parsing mode?

Copy link
Author

Choose a reason for hiding this comment

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

I think it is way more readable and this method is present in the stack, just has not been moved in humble to nav2_utils from the nav2_costmap yet. And also i wanted to avoid adding hand written code to the sync. As there was a restructuring, I think it is better to use the new way simply.

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