2012-12-05 01:19:09 +08:00
|
|
|
# create ssh login without password
|
|
|
|
ssh-keygen -t rsa
|
|
|
|
cat .ssh/id_rsa.pub | ssh lukas@192.168.7.1 'cat >> .ssh/authorized_keys'
|
|
|
|
# copy prepared rosinstall file
|
|
|
|
scp lukas@192.168.7.1:/home/lukas/ros_server/fuerte-ros-base.rosinstall .
|
|
|
|
# run rosinstall
|
|
|
|
mkdir ~/ros
|
|
|
|
rosinstall --catkin ~/ros fuerte-ros-base.rosinstall
|
2012-12-07 21:09:41 +08:00
|
|
|
# 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
|
2012-12-05 01:19:09 +08:00
|
|
|
# cmake invocation
|
|
|
|
cd ~/ros
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2012-12-07 21:09:41 +08:00
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DSETUPTOOLS_DEB_LAYOUT=OFF
|
|
|
|
# compile and install
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
# start roscore
|
|
|
|
. /opt/ros/fuerte/setup.sh
|
|
|
|
roscore
|