Skip to content
Snippets Groups Projects
Commit 4cd538e2 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug when generating a constant velocity spline: some of the...

Solved a bug when generating a constant velocity spline: some of the parameters where not computed properly.
parent 34cbebf4
No related branches found
No related tags found
1 merge request!2Solved a bug when creating a new geometry object: the sale factor is...
...@@ -181,7 +181,10 @@ bool CVelSpline::generate_max_length(double &max_len) ...@@ -181,7 +181,10 @@ bool CVelSpline::generate_max_length(double &max_len)
if(fabs(this->start_acc-this->end_acc)<0.001) if(fabs(this->start_acc-this->end_acc)<0.001)
{ {
if(fabs(this->end_vel-this->start_vel)<0.001) if(fabs(this->end_vel-this->start_vel)<0.001)
{
this->generate_constant_vel(this->start_vel,max_len); this->generate_constant_vel(this->start_vel,max_len);
return true;
}
else else
{ {
this->time=(2.0*max_len)/(this->end_vel+this->start_vel); this->time=(2.0*max_len)/(this->end_vel+this->start_vel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment