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

How to keep rc-car inside lane after lane detection

asked 2020-09-09 03:58:38 -0500

MrRivi gravatar image

Hi, I am working on keeping my RC car between 2 lines inside a circuit track. I'm using a monocular camera (raspicam v2) and a raspberry 4B.

After performing some sort of lane/lines detection with opencv, what could I do to keep the car inside the lane??

Any info is welcomed.

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-19 15:13:21 -0500

Morgenstern gravatar image

updated 2021-01-19 15:17:45 -0500

You can check this https://stackoverflow.com/questions/2....

understand OpenCV moments function and than get and error value from distance to center. And try to process it in PID or PI or P

Also you can check ball chasing with donkeycar build.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-09-09 03:58:38 -0500

Seen: 792 times

Last updated: Jan 19 '21