Skip to content

Commit

Permalink
use IGN_PI
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Feb 12, 2022
1 parent 0927042 commit 9a1ddd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/worlds/shader_param.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ ShaderParam visual plugin over time.
<pose>0 0 1.5 0 0 0</pose>
<uri>https://fuel.ignitionrobotics.org/1.0/openrobotics/models/deformable_sphere</uri>
</include>

<include>
<name>waves</name>
<pose>0 0 0 0 0 0</pose>
Expand Down
2 changes: 1 addition & 1 deletion src/systems/trajectory_follower/TrajectoryFollower.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void TrajectoryFollowerPrivate::Load(const EntityComponentManager &_ecm,
// Add the local vector to the current position.
// Store global position as a waypoint.
this->localWaypoints.push_back(position + vec);
angle += 2 * M_PI / this->numSamples;
angle += 2 * IGN_PI / this->numSamples;
vec.Set(radius * cos(angle), radius * sin(angle));
igndbg << "Entered circle waypoint " << position + vec << std::endl;
}
Expand Down

0 comments on commit 9a1ddd9

Please sign in to comment.