-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline
Closing due to inactivity. Feel free to reopen |
yes, I will let @Idate96 decide whether he wants to further follow up on this or not |
Introduces new functionality to: