Hexapod: Difference between revisions

From Control Systems Technology Group
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
= Installation =
= Installation =
* Ubuntu 10.04 LTS
The installation assumes that Ubuntu 10.04 LTS is installed. If not you should install an Ubuntu version.
* ros-electric-pr2-desktop + ros-electric-orocos-toolchain + ros-electric-rtt-common-msgs
<pre>
* git clone http://git.mech.kuleuven.be/robotics/soem.git
# Setup your computer to accept software from ROS.org
* cd soem
# 10.04 (lucid)
* git checkout origin/electric
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu lucid main" > /etc/apt/sources.list.d/ros-latest.list'
* orocos_components_dev [Amigo project]
 
* http://hexapod.wtb.tue.nl/svn/hexapod/
# Set up your keys
* create rtt messages by: "rosrun rtt_rosnode create_rtt_msgs hexapod_msgs"
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
 
# Installation
sudo apt-get update
sudo apt-get install ros-electric-desktop-full
sudo apt-get install ros-electric-orocos-toolchain
sudo apt-get install ros-electric-rtt-common-msgs
 
# Create your personal ros directory
mkdir ~/ros_personal
 
echo "source /opt/ros/electric/setup.bash" >> ~/.bashrc
echo "export ROS_PACKAGE_PATH=/opt/ros/electric/stacks:~/ros_personal" >> ~/.bashrc
echo "export RTT_COMPONENT_PATH=/opt/ros/electric/stacks/orocos_toolchain/install/lib/orocos" >> ~/.bashrc
echo "source /opt/ros/electric/stacks/orocos_toolchain/env.sh" >> ~/.bashrc
. ~/.bashrc
 
# Build SOEM
cd ~/ros_personal
git clone http://git.mech.kuleuven.be/robotics/soem.git
cd soem
git checkout origin/electric
rosmake soem


== .bashrc ==
# Build hexapod
cd ~/ros_personal
svn checkout http://hexapod.wtb.tue.nl/svn/hexapod ./hexapod
cd hexapod
rosrun rtt_rosnode create_rtt_msgs hexapod_msgs
rosmake
 
# You still should get
## (1) pr2_spring_transmission_example
## (2) orocos_components_dev
</pre>
It is possible to put the code in a shell-file and run it.
 
= SVN =
The code can be found on: http://hexapod.wtb.tue.nl/svn/hexapod/.
 
To obtain an account you should contact Patrick van Brakel.
To keep the svn clean i.e. no build, bin or lib files do the following:
<pre>
sudo gedit /etc/subversion/config
</pre>
Uncomment, by removing the '#' and add
<pre>
<pre>
source /opt/ros/electric/setup.bash
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
export ROS_PACKAGE_PATH=/opt/ros/electric/stacks:~/YOUR_DIR
  *.rej *~ #*# .#* .*.swp .DS_Store lib build bin .tb_history msg_gen srv_gen
export RTT_COMPONENT_PATH=/opt/ros/electric/stacks/orocos_toolchain/install/lib/orocos
source /opt/ros/electric/stacks/orocos_toolchain/env.sh
</pre>
</pre>

Revision as of 14:29, 10 November 2011

Installation

The installation assumes that Ubuntu 10.04 LTS is installed. If not you should install an Ubuntu version.

# Setup your computer to accept software from ROS.org
# 10.04 (lucid)
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu lucid main" > /etc/apt/sources.list.d/ros-latest.list'

# Set up your keys
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -

# Installation
sudo apt-get update
sudo apt-get install ros-electric-desktop-full
sudo apt-get install ros-electric-orocos-toolchain
sudo apt-get install ros-electric-rtt-common-msgs

# Create your personal ros directory
mkdir ~/ros_personal

echo "source /opt/ros/electric/setup.bash" >> ~/.bashrc
echo "export ROS_PACKAGE_PATH=/opt/ros/electric/stacks:~/ros_personal" >> ~/.bashrc
echo "export RTT_COMPONENT_PATH=/opt/ros/electric/stacks/orocos_toolchain/install/lib/orocos" >> ~/.bashrc
echo "source /opt/ros/electric/stacks/orocos_toolchain/env.sh" >> ~/.bashrc
. ~/.bashrc

# Build SOEM
cd ~/ros_personal
git clone http://git.mech.kuleuven.be/robotics/soem.git
cd soem
git checkout origin/electric
rosmake soem

# Build hexapod
cd ~/ros_personal
svn checkout http://hexapod.wtb.tue.nl/svn/hexapod ./hexapod
cd hexapod
rosrun rtt_rosnode create_rtt_msgs hexapod_msgs
rosmake

# You still should get
## (1) pr2_spring_transmission_example
## (2) orocos_components_dev

It is possible to put the code in a shell-file and run it.

SVN

The code can be found on: http://hexapod.wtb.tue.nl/svn/hexapod/.

To obtain an account you should contact Patrick van Brakel. To keep the svn clean i.e. no build, bin or lib files do the following:

sudo gedit /etc/subversion/config 

Uncomment, by removing the '#' and add

global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
  *.rej *~ #*# .#* .*.swp .DS_Store lib build bin .tb_history msg_gen srv_gen