Install Dependencies
Make sure you installed ROS noetic or install it following the steps here: ROS wiki
rosdep install --from-paths src --ignore-src -r -y
sudo apt-get install ros-noetic-moveit-*
sudo apt-get install ros-noetic-joint-* Buid the Workspace
catkin_make
Run the simulator
export TURTLEBOT3_MODEL=waffle_pi in the .bashrc
Terminal 1
source devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_manipulation_gazebo turtlebot3_manipulation_gazebo.launchTerminal 2
source devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_manipulation_moveit_config move_group.launchTerminal 3
source devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
roslaunch turtlebot3_manipulation_moveit_config moveit_rviz.launchRobot Control package
rosrun move_robot move_robot.pyOpen Three Terminals
source devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
roslaunch solution gather_image_data.launchsource devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
cd src/turtlebot3_manipulation_simulations/turtlebot3_manipulation_gazebo/scripts
python3 spawn_three_balls.pysource devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
cd src/perception/image_data
rosrun perception get_image_data.py- Start the simulator
- Repeat for each test case
Open Two Terminals
source devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
roslaunch solution gather_distance_radius_data.launch-
Set the blue ball coordinates from the simulator to (x=2.5, y=0.0)
-
Start the simulator
-
from the directory you want the .csv file to be saved to
source devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
rosrun solution radius_to_distance.pysource devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
roslaunch control solution.launch