Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autonomous_driving_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
autonomous_driving
autonomous_driving_tools
Commits
133742d6
Commit
133742d6
authored
1 year ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Generate the spline in case it is not already generated in the evaluate() function.
parent
974d4f74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Solved a bug when creating a new geometry object: the sale factor is...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/g2_spline.cpp
+2
-0
2 additions, 0 deletions
src/g2_spline.cpp
with
2 additions
and
0 deletions
src/g2_spline.cpp
+
2
−
0
View file @
133742d6
...
...
@@ -865,6 +865,8 @@ void CG2Spline::generate(double &resolution,double n1,double n2, double n3, doub
bool
CG2Spline
::
evaluate
(
double
length
,
TPoint
&
point
)
{
if
(
!
this
->
generated
)
this
->
generate
(
DEFAULT_RESOLUTION
);
if
(
length
<
-
this
->
resolution
||
length
>
(
this
->
length
[
this
->
num_points
-
1
]
+
this
->
resolution
))
return
false
;
else
if
(
length
<
0.0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment