Wheel rotation of mobile robot at 180 degree
Posted: Tue Mar 10, 2015 8:12 am
Hello to all
I am trying to rotate the robot at 180 degree on single step of simulation out of three buttons. But robot only move maximum of 30 degree at each time step. The code is given below:
How can i do this?
I want to achieve the goal, when i press the one step of simulation then my robot should move its wheels at 180 degree. While robot should not change its position but only wheels should move at desired angle.
Thanks
I am trying to rotate the robot at 180 degree on single step of simulation out of three buttons. But robot only move maximum of 30 degree at each time step. The code is given below:
Code: Select all
Real fLeftWheelSpeed, fRightWheelSpeed;
fLeftWheelSpeed = m_sWheelTurningParams.MaxSpeed;
fRightWheelSpeed = -m_sWheelTurningParams.MaxSpeed;
m_pcWheels->SetLinearVelocity(fLeftWheelSpeed, fRightWheelSpeed);
I want to achieve the goal, when i press the one step of simulation then my robot should move its wheels at 180 degree. While robot should not change its position but only wheels should move at desired angle.
Thanks