Last active
June 3, 2016 12:31
-
-
Save ammarnajjar/c9eecebdcb67effed76107b786dbe106 to your computer and use it in GitHub Desktop.
catkin workspace indigo setup bash script for lwa4p robot arm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ubuntu 14.04 64-bit | |
# ROS-Indigo (the most recent update) | |
# SocketCAN(ESD CAN card (PLX90xx), sja1000 kernel driver) | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net --recv-key 0xB01FA116 | |
# install Indigo and some dep packages on a fresh ubuntu 14.04 | |
sudo apt-get update && sudo apt-get install -y ros-indigo-desktop \ | |
ros-indigo-libntcan ros-indigo-libpcan ros-indigo-controller-manager \ | |
ros-indigo-controller-manager-msgs ros-indigo-joint-limits-interface \ | |
ros-indigo-cob-srvs ros-indigo-cob-control-mode-adapter \ | |
ros-indigo-cob-dashboard ros-indigo-cob-command-gui libmuparser-dev git | |
# Initialize rosdep | |
sudo rosdep init | |
rosdep update | |
# prepare catkin workspace | |
rm -rf $HOME/catkin_ws | |
mkdir -p $HOME/catkin_ws/src | |
cd $HOME/catkin_ws/src | |
echo ">> Current directory: $(pwd)" | |
catkin_init_workspace | |
# git clone https://github.com/ipa320/schunk_modular_robotics.git -b indigo-devel | |
# git clone https://github.com/ros-industrial/ros_canopen.git -b indigo-devel | |
git clone https://github.com/ammarnajjar/ros_canopen.git -b no-lost-arbitration-handling | |
git clone https://github.com/ipa320/schunk_robots.git -b indigo_dev | |
git clone https://github.com/ammarnajjar/lwa4p_moveit_config.git | |
cd .. | |
# install other dep packages | |
echo ">> Current directory: $(pwd)" | |
rosdep install -y --from-paths src --ignore-src --rosdistro indigo | |
# build | |
catkin_make | tee catkin.log | |
echo "source $HOME/catkin_ws/devel/setup.bash" >> $HOME/.bashrc | |
# prepare can0 | |
sudo ip link set dev can0 down | |
sudo ip link set can0 type can bitrate 500000 | |
sudo ip link set dev can0 up | |
sudo ifconfig can0 txqueuelen 20 | |
source $HOME/catkin_ws/devel/setup.bash | |
# vim: set ft=sh ts=4 sw=4 noet ai : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment