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

Sensor notice wall

asked 2022-05-20 12:44:04 -0500

atsutota gravatar image

updated 2022-05-20 12:44:20 -0500

My robot will start moving straight. It will continue freely without specifying any distance. When the sensor encounters the wall, the robot will turn right. After a short distance, he will turn right again. After continuing straight again, it will turn right again when it approaches the wall. How can I write this process as code? Python!

https://imgur.com/a/852Ptde

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-05-23 02:21:15 -0500

ljaniec gravatar image

You can use these tutorials:

http://wiki.ros.org/turtlesim/Tutorials

As a base for the implementation for your robot (Especially chapters: 8. Video Tutorials, 9. Practicing Python with Turtlesim: 9.1. Moving in a Straight Line, 9.2. Rotating Left/Right, 9.3. Moving to goal).

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-05-20 12:44:04 -0500

Seen: 54 times

Last updated: May 23 '22