Hi, how can I implement a code so that I can put two ray sensors on each side of my robot so that it can stay in the middle of a track without colliding with the walls.
Thank you in advance!
Ray sensors
Re: Ray sensors
Hello,
you will have to write a controller for that.
Your inputs are: left and right sensor
Your outputs are: the left and right velocity of your robot wheels (for instance)
What algorithm you chose is fully up to you. Have a look at the demo model in models/robots/mobile/dr20.ttm
Cheers
you will have to write a controller for that.
Your inputs are: left and right sensor
Your outputs are: the left and right velocity of your robot wheels (for instance)
What algorithm you chose is fully up to you. Have a look at the demo model in models/robots/mobile/dr20.ttm
Cheers
Re: Ray sensors
In the model browser on the left hand side