Search
The main task is to implement ROS modules for multi-goal multi-robot inspection planning based on the task T2b-dtspn.
Implement ROS nodes to solve the multi-goal multi-robot inspection planning task. The provided resource pack supports deployment using the STDR simulator. Moreover, an R-VIZ setup file is provided to visualize the robot knowledge of the environment using the messages published by the individual ROS nodes.
The robot is constrained by its minimal velocity $$v_{min} = 1 \text{ ms}^{-1}$$ and minimal turning radius $$r_{min} = 0.5 \text{ m}.$$
The simulator provides and processes the following inputs and outputs, respectively
x
y
radius
subject to $$i \in {0,1,...,N-1}$$ where N is number of robots in the simulation. Thus, the velocity command topic for the first robot is /robot0/cmd_vel/dubins.
N
/robot0/cmd_vel/dubins
To run the STDR simulator
roslaunch uir_multi_goal_tools uir_backend_multi_goal.launch [robot_n:=number_of_robots]
robot_n
The provided RVIZ setup file may be used to visualize the following topics
A demonstration in STDR is evaluated by an instructor during the labs.
The path following module drives a curvature constrained robot along a given path by publishing velocity commands. The followed path represents a tour of goal locations and should be followed indefinitely. Moreover, an individual instance of this node should be created for each of the robots.
Note, commands that do not comply the robot motion constraints should be avoided, as they may lead to unpredictable behavior. Assume that the command velocity issued as $$ \begin{aligned} &\text{linear}:\\ &\quad x: 1.0\\ &\quad y: 0.0\\ &\quad z: 0.0\\ &\text{angular}:\\ &\quad x: 0.0\\ &\quad y: 0.0\\ &\quad z: 2.0\\ \end{aligned} $$ corresponds to the robot moving with the forward velocity $$v = 1 \text{ ms}^{-1}$$ and turning with the turning radius $$r = 0.5 \text{ m}.$$
The goal clustering module assigns goals to the individual robots.
The path planning module plans a closed loop path over goals assigned to a robot.
Use either the decoupled or Noon-Bean approach, or an appropriate combination based on the goals assigned to the robot.
To run the ROS nodes, it is strongly recommended to use either Ubuntu 16 with ROS Kinetic or Ubuntu 18 with ROS Melodic. Detailed installation instructions may be found on ROS web pages ROS Kinetic, ROS Melodic.
On the lab computers, ROS Kinetic is already preinstalled but two more libraries need to be installed before using it.
pip install rospkg pip install netifaces
~/.bashrc
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
Finally, on Ubuntu 16 the STDR simulator is installed using
sudo apt-get install ros-kinetic-stdr-*
On Ubuntu 16 and 18 the ROS workspace is created as follows
cd ~/ mkdir rds_ws mkdir rds_ws/src cd rds_ws catkin_make # source the workspace cd devel devel_path=$(pwd) echo "source $devel_path/setup.bash" >> ~/.bashrc source setup.bash # Add new (custom) package to the workspace cd ~/rds_ws/src # Go to src folder in your workspace. ln -s [path to your package] # Create symlink to your package (or place the whole package directly to src). cd ~/rds_ws catkin_make # Compile the workspace. rospack list # Make sure that your pack is known. (Sometimes this is necessary to refresh ROS. ) # Now, you should be able to use the package within ROS (rosrun or roslaunch). # useful commands rostopic list # all current topics in the ROS system rostopic info [topic name] # show info about topic - publishers, subscribers rostopic echo [topic name] # writes msgs data on certain topic to stdout rostopic hz [topic name] # prints frequency of msgs on a certain topic rosnode list # all currently running nodes rosnode info [node name] # info about the node: published topics, subscribed topics # useful tools rqt_graph # visualize connection between the nodes (might not be 100% accurate) rviz # spatial visualization of the msgs rosrun tf view_frames # creates pdf with a visualization of the whole transformation tree (all the /tf msgs in the system) rosbag record # capture ROS msgs on selected topics (data can be played with selected speed afterwards) rosbag play [bagfile] # play data saved in bagfile
The main study material for ROS is http://wiki.ros.org/ROS/Tutorials. A special attention should be given to ROS message-based communication presented in http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28python%29.