A collection of PID controllers for ROS
Type this in a terminal.
This should work if you have ROS and catkin_tools
installed on your computer.
cd <your_catkin_workspace>/src
git clone https://github.com/adaldo/rospid
cd <your_catkin_workspace>
catkin build
source devel/setup.bash
Type this in a terminal.
rosrun rospid <controller>.py
Replace <controller>
with the controller that you want to use.
For now, you can only choose proportional
or zero
.
- Inherit from
abstract.Abstract
. - Redefine
control_law
and, if needed,__init__
. - Initiate a ROS node with
rospy.init_node
. - Spawn an instance of your child class.
- Call the
start
method of your object.