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

Dev/nav #21

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Dev/nav #21

wants to merge 10 commits into from

Conversation

Idate96
Copy link
Collaborator

@Idate96 Idate96 commented Mar 7, 2023

Introduces new functionality to:

  • new msgs to use the nav msg as target goal
  • possible inconstistency if breking distance does not match with nominal vel and acc
  • more robust update for the segment id for the path tracker
  • 2 points paths removed

@Idate96 Idate96 requested a review from nubertj March 7, 2023 18:06
@nubertj nubertj requested a review from jelavice March 28, 2023 13:44
Copy link
Member

@nubertj nubertj left a comment

Choose a reason for hiding this comment

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

why is config and param needed both?

Good to merge after replying and renaming the var imo

@@ -55,6 +56,8 @@ class HeadingController {
PathSegment currentPathSegment_;
unsigned int lastClosestPointId_ = 0;
Vector desiredLinearVelocity_;
// max path deviation from tracked path
double maxPathDistance_ = 1.0;
Copy link
Member

Choose a reason for hiding this comment

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

maxPathDeviation_ would be better, similar to your comment

@@ -35,7 +35,15 @@ void SimplePathTracker::importCurrentPath(const Path& path) {
if (!isPathAndCurrenStateWithinRadius(path, headingController_->getActiveLookaheadDistance())) {
std::cout << "WARNING: path imported is more than one lookahead distance away from the current state" << std::endl;
}
currentPath_ = path;
// remove from path segments that have less than two points (they are not valid for pure pursuit)
Copy link
Member

Choose a reason for hiding this comment

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

this is only ran once in the beginning after importing the path, right?
Otherwise it could maybe be implementted more efficiently...

Copy link
Member

Choose a reason for hiding this comment

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

what happened before with the pure pursuit with these segments?

@@ -156,7 +156,9 @@ void updateFromDD(const pure_pursuit_ros::PurePursuitConfig& config, AckermannSt
param->maxSteeringAngleMagnitude_ = config.max_steering_angle_magnitude_in_deg * kDegToRad;
param->maxSteeringRateOfChange_ = config.max_steering_rate_of_change_in_deg_per_sec * kDegToRad;
param->wheelBase_ = config.wheel_base;
param->maxPathDistance_ = config.max_path_distance;
Copy link
Member

Choose a reason for hiding this comment

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

rename

Copy link
Member

Choose a reason for hiding this comment

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

having some comments in the config would be nice I assume.

@@ -0,0 +1,3 @@
---
# Response
bool status
Copy link
Member

Choose a reason for hiding this comment

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

newline

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.

None yet

2 participants