Skip to content

Commit 1f8dc05

Browse files
jarvisschultzdirk-thomas
authored andcommitted
Updated the coordinate system in /spawn service for consistency.
1 parent 36715e2 commit 1f8dc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

turtlesim/src/turtle_frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ std::string TurtleFrame::spawnTurtle(const std::string& name, float x, float y,
176176
}
177177
}
178178

179-
TurtlePtr t(new Turtle(ros::NodeHandle(real_name), turtle_images_[index], QPointF(x, y), angle));
179+
TurtlePtr t(new Turtle(ros::NodeHandle(real_name), turtle_images_[index], QPointF(x, height_in_meters_ - y), angle));
180180
turtles_[real_name] = t;
181181
update();
182182

0 commit comments

Comments
 (0)