This package simulates an inverted pendulum connected to a motor with a fixed arm and controls it using torque into a stable upright position. The considered angle is the angle between the rod and the vertical axis. It is zero at the steady-state free motion of the rod.
simulator
: this node simulates the pendulum motion and send visualization commands to rviz. Here are the parameters of this nodeM
: mass of the ballm
: mass of the rodl
: length of the rodb
: damping coefficient considered for the angular friction of the rod
controller
: this node controls the pendulum motion using a PD controllerKp
: proportional gain of the controllerKd
: derivative gain the controllerreference
: reference angle of the rod (default value pi)b
: damping coefficient considered for the angular friction of the rod
No non standard libraries used.
roslaunch pendulum_control pendulum.launch