Question: Position control: Implement a simple proportional controller using first - order error dynamics such that the robot reaches the desired x position. Find the controller
Position control: Implement a simple proportional controller using firstorder error dynamics such that the robot reaches the desired position.
Find the controller function a few lines below.
Steps:
Compute the error between the desired position and and the current position. The desired position and the current position are both inputs to the controller arguments of the controller function
Multiply the position error by a gain for this example use a gain of
Assign that value to a velocity command in the fixed direction
We want to control the robot's position on the fixed axis for now. Therefore, the velocity command in the fixed direction and the angular velocity command remain zero. Then, set the linear velocity command in the mobile direction
Check that your lines of code look Ok Do not forget to set and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
