ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Is there a way to generade code through motion simulation?

asked 2021-11-10 03:23:34 -0600

JanRob gravatar image

Hey guys,

I'm pretty new to ROS and software engineering in general. Right now i'm looking for an easy way to make a Turtlebot3 move in a straight line. There are many simulation packages, but so far i haven't found a way to put all of it into the real world. Even after daylong research. Do you have any suggestions how i can implement the simulation into a real world movement?

Thanks for your help

I'm using ROS2 Foxy on a turtlebot3. I'm runnning on Windows 10.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-10 11:26:39 -0600

shonigmann gravatar image

Driving in a "straight" line with a turtlebot3 should be more or less the same in simulation and in hardware from the "operator's" perspective. Read the turtlebot3 e-manual for instructions on basic operation.

The easiest way to drive in a straight line is to publish to the cmd_vel topic with a positive x velocity. Both the simulated turtlebot and physical turtlebot monitor the same cmd_vel topic and will respond very similarly.

Not sure what else you mean by "implement the simulation into a real world movement".

edit flag offensive delete link more

Comments

Perhaps the OP is asking for "robot program generation" functionality, similar to what can be found in typical off-line robot programming environments such as RobotStudio, Roboguide, etc.

gvdhoorn gravatar image gvdhoorn  ( 2021-11-10 11:31:41 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2021-11-10 03:23:34 -0600

Seen: 50 times

Last updated: Nov 10 '21