Skip to content

Commit

Permalink
Updated the coordinate system in /spawn service for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisschultz committed Jun 12, 2015
1 parent 36715e2 commit a0d4d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turtlesim/src/turtle_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ std::string TurtleFrame::spawnTurtle(const std::string& name, float x, float y,
}
}

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

Expand Down

0 comments on commit a0d4d43

Please sign in to comment.