- Install youBot ROS packages e.g.
$ sudo apt-get install ros-indigo-youbot-driver-ros-interface
-
Install v-rep (http://www.v-rep.eu/) into i.e. /opt/v-rep
-
Clone the repository into your catkin workspace
-
Copy vrep_common and vrep_plugin ros packages to your catkin workspace
$ cp -r /opt/v-rep/programming/ros_packages/vrep_plugin ~/catkin_ws/src/ $ cp -r /opt/v-rep/programming/ros_packages/vrep_common ~/catkin_ws/src/
-
Compile
$ catkin_make
-
Copy the compiled libraries libv_repExtyouBot.so and libv_repExtRos.so into your /opt/v-rep directory
$ sudo cp ~/catkin_ws/devel/lib/libv_repExt* /opt/v-rep
-
Start ros
$ roscore
-
Load v-rep bringup launchfile
$ roslaunch vrep_youbot_plugin vrep_youbot.launch
-
Start v-rep
$ /opt/v-rep/v-rep.sh
-
Load the scene file in v-rep (.../vrep_youbot_plugin/scenes/...)
-
Start the simulation
Note: the simulation must be running before you can control the youBot!
- You can run the test scripts (test/test_joint_position.sh, test_gripper_position.sh, test_base.sh) in order to check if your are able to control the v-rep youBot using ROS
Have fun!