Skip to content

Commit 19e3ee8

Browse files
committed
Use correct start point
1 parent 703315f commit 19e3ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EnvironmentXYZTheta.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ void EnvironmentXYZTheta::getTrajectory(const vector<int>& stateIDPath,
10161016
for (const base::Pose2D &p : cwp.poses)
10171017
{
10181018
Eigen::Vector3d point{p.position.x(), p.position.y(), 0};
1019-
Eigen::Vector3d globalPoint = point + Eigen::Vector3d(start.x(), start.y(), posWorld.z());
1019+
Eigen::Vector3d globalPoint = point + Eigen::Vector3d(start.x(), start.y(), start.z());
10201020
Eigen::Vector3d pointP = travNodePlane.projection(globalPoint); // Offset by posWorld
10211021

10221022
#ifdef ENABLE_DEBUG_DRAWINGS

0 commit comments

Comments
 (0)