Controling the rotation Youbot

Typically: "How do I... ", "How can I... " questions
Post Reply
Coisoecenas
Posts: 8
Joined: 13 Jan 2014, 13:47

Controling the rotation Youbot

Post by Coisoecenas »

Hi.

I want to move the youbot from one point (X1,Y1) to another (X2,Y2). I managed to calculate the distance between those 2 points and the inclination of the line that crosses both points. I rotate to correct the inclination so the youbot faces the object I want to go (0º of inclination), that way I just need to go forward to get to the point. But I cant control how much degrees I want to rotate.
Anybody knows how to do it?

Thanks

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Controling the rotation Youbot

Post by coppelia »

Hello,

have a look at these related posts:
Cheers

Coisoecenas
Posts: 8
Joined: 13 Jan 2014, 13:47

Re: Controling the rotation Youbot

Post by Coisoecenas »

Hi.

In the second link you talk about the object vehicleControl. Where can I find that object?

Thanks.

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Controling the rotation Youbot

Post by coppelia »

Open the demo scene youBotAndHanoiTower.ttt. Open the hierarchy of the youBot model (in the scene hierarchy) and locate object vehicleControl. Then double-click on the script icon to its right.

Cheers

Post Reply