Set Gripper Direction towards the front robot
Posted: Tue Mar 24, 2020 12:00 pm
Hi Sir,
I am using your code (LUA code for search and rescue) in which a robot is moving towards other robot based on negative and positive angle. Actually there are two functions where in first function the robot detect the location of front robot and get length and angle with that robot. While in second function it set velocity based on previously obtained length and angle. With positive angle it turns towards other robot with following code.
And by using above code the gripper becomes set towards front robot where it get easily attach with that robot.
But in case if robot get negative angle with other robot than it moves towards other robot with following code.
But with above code the robot moves towards front robot but in this case the gripper is not towards the front robot which is not what i want. In negative angle robots is also moving towards front robot but gripper is not towards front robot side. As shown in attached images where green LED robot is moving towards red LED robot but gripper of green LED robot is opposite to the front RED LED robot.
How can we make gripper towards the front robot particularly with negative angle.?
Thanks and Best Regards
I am using your code (LUA code for search and rescue) in which a robot is moving towards other robot based on negative and positive angle. Actually there are two functions where in first function the robot detect the location of front robot and get length and angle with that robot. While in second function it set velocity based on previously obtained length and angle. With positive angle it turns towards other robot with following code.
Code: Select all
lvel = length * (1 - 2 * angle / math.pi)
rvel = length
But in case if robot get negative angle with other robot than it moves towards other robot with following code.
Code: Select all
lvel = length
rvel = length * (1 + 2 * angle / math.pi)
How can we make gripper towards the front robot particularly with negative angle.?
Thanks and Best Regards