Open cmurray3 opened 4 years ago
# Remove old key:
sudo apt-key del B01FA116
# Get new key:
sudo -E apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# Final cleanup:
sudo apt-get clean && sudo apt update
# Install ROS packages
cd ~
sudo apt-get install ros-indigo-ros-control ros-indigo-gazebo-ros-control ros-indigo-joint-state-controller ros-indigo-effort-controllers ros-indigo-joint-trajectory-controller ros-indigo-moveit* ros-indigo-octomap* ros-indigo-object-recognition*
mkdir -p ~/Projects/
chessbot.zip
(from UBbox download)chessbot
directory into ~/Projects/
~/Project/chessbot
build
and devel
directories.Now compile the code:
cd ~/Projects/chessbot
catkin_make
More Installation:
sudo apt-get install python-pip
sudo pip install pgnparser
cd ~/Projects/chessbot
source devel/setup.bash
roslaunch r2_gazebo r2_gazebo.launch
[Terminal 2] Compute Forward Kinematics:
rosrun robot_state_publisher robot_state_publisher
[Terminal 3] Start Moveit:
cd ~/Projects/chessbot
source devel/setup.bash
roslaunch r2_moveit_config move_group.launch
[Terminal 4] Run the Mime:
source ~/Projects/chessbot/devel/setup.bash
Random:
cd ~/Projects/chessbot/src/scripts
chmod +x r2_mime.py
./r2_mime.py
Or command line interface (CLI):
cd ~/Projects/chessbot/src/scripts
chmod +x r2_cli.py
./r2_cli.py left 0.5 -0.5 1.3 3.14 -1.5 -1.57
./r2_cli.py right -0.4 -0.6 1.4 3.14 -1.5 -1.57
./r2_cli.py left 0.4 -0.4 1.2 3.14 -1.5 -1.57
Or, shortcuts to the CLI using a .bash script:
cd ~/Projects/chessbot/src/scripts
source ./r2.bash
r2lhome
r2rhome
r2home
MOVING R2's HAND
cd ~/Projects/chessbot/src/scripts
chmod +x r2_chessboard_cli.py
./r2_chessboard_cli.py a2 0.04
cd ~/Projects/chessbot/scripts
chmod +x r2_hand.py
./r2_hand.py pre-pinch
./r2_hand.py pinch
cd ~/Projects/chessbot
source devel/setup.bash
roslaunch r2_gazebo r2_gazebo.launch
rosrun robot_state_publisher robot_state_publisher
cd ~/Projects/chessbot
source devel/setup.bash
roslaunch r2_moveit_config move_group.launch
cd ~/Projects/chessbot/src/scripts
source ~/Projects/chessbot/devel/setup.bash
chmod +x spawn_chessboard.py
./spawn_chessboard.py
cd ~/Projects/chessbot/src/scripts
chmod +x r2_chess_pgn.py
source ~/Projects/chessbot/devel/setup.bash
./r2_chess_pgn.py morgan_defeated.pgn
./r2_chess_pgn.py morgan_defeated_lan.pgn
Download chessbot.zip from https://buffalo.box.com/s/0526ny2dh2569si396a50enfo6k3ay5f