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 first-order error dynamics such that the robot reaches the desired x position.
Find the controller function a few lines below.
Steps:
Compute the error xe between the desired xd position and and the current x position. The desired xd position and the current x 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 kp of 1.15).
Assign that value to a velocity command in the fixed x-direction vx=kpxe
We want to control the robot's position on the fixed x-axis for now. Therefore, the velocity command in the fixed y-direction vy and the angular velocity command remain zero. Then, set the linear velocity command in the mobile x-direction v=vx.
Check that your lines of code look Ok. Do not forget to set v=vx. and =0.
 Position control: Implement a simple proportional controller using first-order error dynamics

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!