Skip to content

Commit 9d13de7

Browse files
committed
install turtle ROS packages
1 parent 19ee8e4 commit 9d13de7

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-rosdep
1+
python-rosdep python-catkin-tools
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash -e
2+
3+
echo "=> Retrieving Turtle ROS packages..."
4+
5+
URL="https://github.com/TurtleRover/tr_ros/archive/0.0.tar.gz"
6+
7+
mkdir -p "$ROOTFS_DIR"/tmp/install/ros_ws/src
8+
curl -L $URL --output "$ROOTFS_DIR"/tmp/install/tr_ros.tar.gz
9+
10+
tar -xf "$ROOTFS_DIR"/tmp/install/tr_ros.tar.gz -C "$ROOTFS_DIR"/tmp/install/ros_ws/src
11+
12+
echo "=> Retrieving system dependencies..."
13+
14+
on_chroot <<-EOF
15+
su - pi
16+
cd /tmp/install/ros_ws
17+
source /opt/ros/kinetic/setup.bash
18+
rosdep install --from-paths src --ignore-src -y --os=debian:stretch
19+
EOF
20+
21+
echo "=> Building Turtle ROS packages..."
22+
23+
mkdir -p "$ROOTFS_DIR"/opt/ros/turtle
24+
25+
on_chroot <<-EOF
26+
cd /tmp/install/ros_ws
27+
catkin config --extend /opt/ros/kinetic --install -i /opt/ros/turtle
28+
catkin build
29+
EOF

0 commit comments

Comments
 (0)