Control or simulate Mercury series robots in ROS.
Notes:
- Supported ROS versions:
- Ubuntu 20.04 / ROS Noetic
For using this package, the Python api library should be installed first.
pip install pymycobot --user
Before installing the package, you need to create a ros workspace.
mkdir -p ~/catkin_ws/src # Create folder
cd ~/catkin_ws/src # Enter the folder
catkin_init_workspace # Initialize the current directory into a ROS workspace
cd .. # Return to the upper directory
catkin_make # Build the code in the workspace.
Add a workspace environment
$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
Install ros package in your src folder of your Catkin workspace.
$ cd ~/catkin_ws/src
$ git clone --depth 1 https://github.com/elephantrobotics/mercury_ros.git
$ cd ~/catkin_ws
$ catkin_make
$ source devel/setup.bash
Here we take Mercury A1 as an example
roslaunch merury_a1 test.launch
roslaunch mercury_a1 slider_control.launch
rosrun mercury_a1 slider_control.py
rosrun mercury_a1 follow_display.py
roslaunch mercury_a1 mercury_follow.launch
roslaunch mercury_a1 simple_gui.launch
roslaunch mercury_a1 teleop_keyboard.launch
rosrun mercury_a1 teleop_keyboard.py
roslaunch mercury_a1_moveit mercury_a1.launch
rosrun mercury_a1_moveit sync_plan.py
There is documentation in the ElephantRobotics Docs. Please check the ROS chapter.