mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
launch file
This commit is contained in:
@@ -252,7 +252,7 @@ namespace ModelecGUI
|
|||||||
modelec_interfaces::msg::OdometryGoTo msg;
|
modelec_interfaces::msg::OdometryGoTo msg;
|
||||||
msg.x = Modelec::mapValue(event->pos().x(), 0, width(), 0, 3000);
|
msg.x = Modelec::mapValue(event->pos().x(), 0, width(), 0, 3000);
|
||||||
msg.y = 2000 - Modelec::mapValue(event->pos().y(), 0, height(), 0, 2000);
|
msg.y = 2000 - Modelec::mapValue(event->pos().y(), 0, height(), 0, 2000);
|
||||||
msg.theta = atan2(msg.x, msg.y);
|
msg.theta = atan2(-msg.x, -msg.y);
|
||||||
msg.close = true;
|
msg.close = true;
|
||||||
if (show_obstacle_)
|
if (show_obstacle_)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user