To run this on Gazebo, you HAVE to install the youbot gazebo* interface as per instructions in this link Otherwise, every other dependency is usually available on a standard ROS Installation.
This is the real essence of this repository. There are currently the following nodes:
youbot_vel_dynamicwhich lets you control the base velocities through dynamically reconfigurable parameters. See section on Launch files below, for demo.
youbot_circlewhich lets you move in a circle around an object. The controller gain's, distance to object and emergecy stop are all dynamically reconfigurable parameters. See section on Launch files below, for demo.
lscan_angle_filterthis node lets you dynamically filter the laser scanner output by setting ranges of hits, beyond the required angle of view, very HIGH. See section on Launch files below, for demo.
cropbox_dynamicreads the current distance to the object (which, due to our controller is the same as the commanded distance), reads the current tf tree and outputs an estimate of the position of the object in the ASUS's frame.
cropbox_controlreads the output from the previous node and dynamically sets the cropbox filters x y and z ranges.
Note: Node 5 (cropbox_control) is not fully functional yet, because I havent yet tried it on the youbot. It requires an ASUS connected to the system with a nodelet running, which is currently not the case in the Gazebo demos.
To launch the demo application of the youbot moving around an object on Gazebo, simply run
roslaunch youbot_499 youbot_gazebo_circle.launch
This pops up a rqt_reconfigure window. Choose youbot_circle and Set values for commanded distance from object and PID gains for both position and orientation controller. Set a linear Y velocity and uncheck the emergency stop (estop). Sample values are :
- refd = 1.0
- linear_y = 0.05 or 0.1
- kp (position) = -2.0
- kpp (orientation) = -2.0
Another useful node is lscan_angle_filter. Like mentioned above, it lets you dynamically filter the laser scanner output. To use it on Gazebo, simply run
roslaunch youbot_499 youbot_gazebo_angle_filter.launch
This pops up Rviz and also a rqt_reconfigure window which lets you choose the angle of view. You can see the scan changing on Rviz as you move the sliders on rqt_reconfigure.
There is also pointless application that lets you move the youbot around using rqt_reconfigure. To launch it on Gazebo, simple run
roslaunch youbot_499 youbot_gazebo_move.launch
This again pops up a rqt_reconfigure window which lets you control the velocity of the youbot.
- Initialise arm to a particular position
- Add launch file to run it on the youbot with a cropbox nodelet running