Skip to content

Commit cc5b60c

Browse files
authored
Update template and fix .env missing (#4)
1 parent 40b04cf commit cc5b60c

8 files changed

Lines changed: 52 additions & 228 deletions

File tree

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "git@github.com:UrbanMachine/create-ros-app.git",
3-
"commit": "5cbe2af623cd536fbb52420e3dc8e3205ff6c86e",
3+
"commit": "a4e77fcc6f6764f18d0785c030c60dda90e17ed6",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.env

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file is used to store environment variables for the project.
2+
# Docker compose will automatically load these variables and apply them to the
3+
# docker-compose.yaml. They are also used by scripts in the `docker/` directory.
4+
5+
6+
# Where to mount directories for storing persistent data. Used by 'grafana' and 'loki'
7+
# by default.
8+
VOLUMES_DIRECTORY="./.docker_volumes"
9+
10+
# The name of the 'ros-nodes' image after its built
11+
BUILT_IMAGE_NAME="urbanmachine/node_helpers:latest"
12+
13+
# The name of the base image to use for the 'ros-nodes' image.
14+
BASE_IMAGE="ubuntu:24.04"
15+
16+
# Used for logging
17+
PROJECT_NAME="node_helpers"

.gitattributes

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
* text=auto
2+
3+
*.pcd filter=lfs diff=lfs merge=lfs -binary
4+
*.png filter=lfs diff=lfs merge=lfs -binary
5+
*.jpg filter=lfs diff=lfs merge=lfs -binary
6+
*.jpeg filter=lfs diff=lfs merge=lfs -binary
7+
*.svg filter=lfs diff=lfs merge=lfs -binary
8+
*.mkv filter=lfs diff=lfs merge=lfs -binary
9+
*.npy filter=lfs diff=lfs merge=lfs -binary
10+
*.stl filter=lfs diff=lfs merge=lfs -binary
11+
*.STL filter=lfs diff=lfs merge=lfs -binary
12+
*.urdf filter=lfs diff=lfs merge=lfs -binary
13+
*.ply filter=lfs diff=lfs merge=lfs -binary
14+
*.pickle filter=lfs diff=lfs merge=lfs -binary
15+
*.msgbytes filter=lfs diff=lfs merge=lfs -binary
16+
*.pt filter=lfs diff=lfs merge=lfs -binary
17+
*.mp3 filter=lfs diff=lfs merge=lfs -binary
18+
*.mp4 filter=lfs diff=lfs merge=lfs -binary
19+
*.ogg filter=lfs diff=lfs merge=lfs -binary
20+
# ReadTheDocs does not support Git LFS
21+
docs/** !filter !diff !merge binary
22+
23+
# Makes images buildable on Windows
24+
docker/** text eol=lf

docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ RUN rosdep update --rosdistro ${ROS2_DISTRO}
8282
########## Add package.xml's of each package
8383
########## NOTE TO TEMPLATE USERS: When adding a new package, add a new line here copying the package.xml
8484
COPY pkgs/node_helpers/package.xml pkgs/node_helpers/package.xml
85+
COPY pkgs/node_helpers_msgs/package.xml pkgs/node_helpers_msgs/package.xml
8586
######################################################################
8687
8788
# Install rosdep dependencies for each package

docs/about_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,9 @@ This directory is automatically created the first time you run `docker/launch`.
139139

140140
For example, if you enter your container via `docker/run` and save a file under `/robot/persistent/`, that file will be available the next time you run `docker/run`. It will also (by default) exist in your local machine under `.docker_volumes/ros-nodes/`.
141141
The `/robot/persistent` directory is intended for you, the developer, to use. So have at it!
142+
143+
## `.gitattributes`
144+
145+
The `.gitattributes` file is used to configure common binary file formats that are used in
146+
robots such that git uses Large File Storage (LFS) to store them. It also specified certain
147+
line endings so that docker support works on windows.

pkgs/node_helpers/node_helpers/launching/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
SwappableNode,
66
apply_node_swaps,
77
)
8-
from .urdf import fix_urdf_paths, prepend_namespace
Lines changed: 3 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- This URDF is for testing purposes-->
3-
<robot name="urdf">
4-
<link name="base_link">
5-
<visual>
6-
<origin
7-
xyz="0 0 0"
8-
rpy="0 0 0"/>
9-
<geometry>
10-
<mesh
11-
filename="package://base_link.STL"/>
12-
</geometry>
13-
<material
14-
name="">
15-
<color
16-
rgba="0.79216 0.81961 0.93333 1"/>
17-
</material>
18-
</visual>
19-
<collision>
20-
<origin
21-
xyz="0 0 0"
22-
rpy="0 0 0"/>
23-
<geometry>
24-
<mesh
25-
filename="package://base_link.STL"/>
26-
</geometry>
27-
</collision>
28-
</link>
29-
30-
<link name="shuttle1">
31-
<visual>
32-
<origin
33-
xyz="0 0 0"
34-
rpy="0 0 0"/>
35-
<geometry>
36-
<mesh
37-
filename="package://shuttle1.STL"/>
38-
</geometry>
39-
<material
40-
name="">
41-
<color
42-
rgba="0.79216 0.81961 0.93333 1"/>
43-
</material>
44-
</visual>
45-
<collision>
46-
<origin
47-
xyz="0 0 0"
48-
rpy="0 0 0"/>
49-
<geometry>
50-
<mesh
51-
filename="package://shuttle1.STL"/>
52-
</geometry>
53-
</collision>
54-
</link>
55-
<joint name="shuttle1-joint" type="prismatic">
56-
<origin
57-
xyz="0.5611 -0.04572 0.0504"
58-
rpy="1.5708 0 0"/>
59-
<parent
60-
link="base_link"/>
61-
<child
62-
link="shuttle1"/>
63-
<axis
64-
xyz="0 0 1"/>
65-
<limit
66-
lower="0"
67-
upper="-6"
68-
effort="0"
69-
velocity="0"/>
70-
</joint>
71-
72-
<link name="clamp1">
73-
<visual>
74-
<origin
75-
xyz="0 0 0"
76-
rpy="0 0 0"/>
77-
<geometry>
78-
<mesh
79-
filename="package://clamp1.STL"/>
80-
</geometry>
81-
<material
82-
name="">
83-
<color
84-
rgba="0.79216 0.81961 0.93333 1"/>
85-
</material>
86-
</visual>
87-
<collision>
88-
<origin
89-
xyz="0 0 0"
90-
rpy="0 0 0"/>
91-
<geometry>
92-
<mesh
93-
filename="package://clamp1.STL"/>
94-
</geometry>
95-
</collision>
96-
</link>
97-
<joint name="clamp1-joint" type="prismatic">
98-
<origin
99-
xyz="-0.4 0.099907 0.0225"
100-
rpy="3.1416 1.5708 0"/>
101-
<parent
102-
link="shuttle1"/>
103-
<child
104-
link="clamp1"/>
105-
<axis
106-
xyz="0 0 -1"/>
107-
<limit
108-
lower="-0.2"
109-
upper="0.6"
110-
effort="0"
111-
velocity="0"/>
112-
</joint>
113-
114-
</robot>
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:df4ea50d48402ad056343e980fb0ce717b644fbee6f1f2a3fc20952a253870e4
3+
size 3191

pkgs/node_helpers/node_helpers_test/unit/launching/test_urdf.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)