Skip to content

Commit c2a5b4c

Browse files
feat(snap): initial package
1 parent 5ad9eab commit c2a5b4c

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

snap/local/teleop_launcher.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/bash
2+
3+
ros2 run key_teleop key_teleop
4+

snap/snapcraft.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: my-ros2-teleop-test
2+
base: core22
3+
version: '0.1'
4+
summary: ROS 2 teleop test snap
5+
description: |
6+
ROS 2 teleop test snap getting configured
7+
8+
grade: devel
9+
confinement: strict
10+
11+
parts:
12+
teleop:
13+
plugin: colcon
14+
source: https://github.com/ros-teleop/teleop_tools.git
15+
stage-packages: [ros-humble-ros2run]
16+
source-branch: master
17+
source-subdir: key_teleop
18+
19+
local-files:
20+
plugin: dump
21+
source: snap/local/
22+
organize:
23+
'*.bash': bin/
24+
25+
apps:
26+
my-ros2-teleop-test:
27+
command: bin/teleop_launcher.bash
28+
plugs: [network, network-bind]
29+
extensions: [ros2-humble]
30+
environment:
31+
"LD_LIBRARY_PATH": "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack"

0 commit comments

Comments
 (0)