ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

pid for angle on uwsim

asked 2016-03-01 12:51:44 -0500

ZYS gravatar image

I run pid for angle on uwsim. I set ki=kd=0 which means P controller is implemented. There exists sustained oscillation. But after a period of time, the oscillation will decrease and the curve will be paralleled to the desired angle curve and besides, the auv stop rotating. I think the curve should oscillate around the setpoint.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-02 04:51:18 -0500

Javier Perez gravatar image

updated 2016-03-02 04:51:54 -0500


I'm not an expert in control but as far as I know a P controller can reach an stable control depending on the model itself. In my opinion this is happening in your case because of three reasons:

  • Drag force helps the control making the system more stable with a force that opposes to the movement.
  • There are no perturbation forces as underwater currents are not modeled by default. You can add a node to add perturbation forces and publish them on "/g500/external_force" of type wrenchstamped so it is harder to control.
  • IMU has some noise that may add some difficulty to control the vehicle, but it is usually too small to have some impact on the system, you can add some more modifying std tag on XML config file for the IMU.
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-03-01 12:51:44 -0500

Seen: 144 times

Last updated: Mar 02 '16