Skip to content
Snippets Groups Projects
Commit eb9318bb authored by Lukas Bulwahn's avatar Lukas Bulwahn
Browse files

extending installation script so that it patches, compiles, installs and...

extending installation script so that it patches, compiles, installs and starts ROS; extending README
parent 52d7f363
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ INSTALLATION and USE:
bitbake core-image-bmw
builds our specifically configured linux image.
With `runqemu qemux86-64 core-image-bmw` the linux image runs within a virtual machine.
With `runqemu qemux86-64 qemuparams="-m 2048" core-image-bmw` the linux image runs within a virtual machine with 2048 MB of memory.
We assume that this is running on and compiled for an x86-64 architecture. For other architectures, some settings must be adjusted.
Extract ros_server.tar.gz somewhere, adjust pathes in fuerte-ros-base.rosinstall to the location where it has been extracted to.
......@@ -52,7 +52,9 @@ RESOLVED ISSUES for M1:
RESOLVED by patching distutils class--will be committed to yocto.
- recipe for log4cxx requires another patch.
RESOLVED by providing patch 0003 in recipe
- Compilation with make fails in the virtual machine because of insufficient memory during compilation.
RESOLVED by increasing memory.
OPEN ISSUES for M1:
- Yocto: python-setuptools requires some python-modules at run-time.
......@@ -60,5 +62,4 @@ OPEN ISSUES for M1:
SHOULD BE RESOLVED by creating an appropriate patch for python-setuptools and contributing to openembedded-core
- rospkg modules are not found when runnning python.
TEMPORARILY RESOLVED by installing natively in the virtual machine
SOLUTION UNCLEAR. Maybe we need rospkg-dev?
- Compilation with make fails in the virtual machine because of insufficient memory during compilation.
SOLUTION UNCLEAR. Cannot be solved by adding rospkg-dev.
......@@ -10,8 +10,40 @@ rosinstall --catkin ~/ros fuerte-ros-base.rosinstall
git clone ssh://lukas@192.168.7.1//home/lukas/ros_server/rospkg
cd ~/rospkg
python setup.py install
# apply patch
cd ~/ros/ros_comm
patch -p1 << EOF
diff -cr ros_comm/tools/rosbag/src/recorder.cpp ros_comm.patched/tools/rosbag/src/recorder.cpp
*** ros_comm/tools/rosbag/src/recorder.cpp 2012-12-06 14:12:06.773910947 +0100
--- ros_comm.patched/tools/rosbag/src/recorder.cpp 2012-12-06 14:14:49.145917680 +0100
***************
*** 436,442 ****
break;
}
boost::xtime xt;
! boost::xtime_get(&xt, boost::TIME_UTC);
xt.nsec += 250000000;
queue_condition_.timed_wait(lock, xt);
if (checkDuration(ros::Time::now()))
--- 436,442 ----
break;
}
boost::xtime xt;
! boost::xtime_get(&xt, boost::TIME_UTC_);
xt.nsec += 250000000;
queue_condition_.timed_wait(lock, xt);
if (checkDuration(ros::Time::now()))
EOF
# cmake invocation
cd ~/ros
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DSETUPTOOLS_DEB_LAYOUT=OFF
\ No newline at end of file
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DSETUPTOOLS_DEB_LAYOUT=OFF
# compile and install
make
make install
# add own name to hosts
echo -e '127.0.0.1\tqemux86-64.localdomain\t\tqemux86-64' >> /etc/hosts
# start roscore
. /opt/ros/fuerte/setup.sh
roscore
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment