-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Map management - load GeoJSON map (#20)
- Loading branch information
Showing
39 changed files
with
1,908 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
groot-build: | ||
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag jkaflik/behaviortree-groot:latest -f groot.Dockerfile . | ||
|
||
groot-publish: | ||
docker push jkaflik/behaviortree-groot:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
if [ ! -d "/home/ws" ]; then | ||
echo "ERROR: /home/ws does not exist. Please mount your workspace to /home/ws" | ||
exit 1 | ||
fi | ||
|
||
cd /home/ws | ||
|
||
sudo apt update | ||
rosdep update | ||
make custom-deps deps | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM ubuntu:jammy | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y -q \ | ||
git \ | ||
build-essential \ | ||
cmake \ | ||
python3 \ | ||
qtbase5-dev \ | ||
libqt5svg5-dev \ | ||
libzmq3-dev \ | ||
libdw-dev \ | ||
libtinfo-dev \ | ||
libncurses5-dev \ | ||
libncursesw5-dev | ||
|
||
RUN git clone https://github.com/BehaviorTree/Groot.git &&\ | ||
cd Groot &&\ | ||
git submodule update --init --recursive &&\ | ||
cd depend/BehaviorTree.CPP &&\ | ||
mkdir build ; cd build &&\ | ||
cmake .. &&\ | ||
make &&\ | ||
make install &&\ | ||
cd /Groot &&\ | ||
mkdir build; cd build &&\ | ||
cmake .. &&\ | ||
make &&\ | ||
# add alias for Groot GUI (simply type "Groot" in terminal) | ||
echo 'alias Groot="cd /Groot/build && ./Groot"' >> ~/.bashrc | ||
|
||
# fixes: "error while loading shared libraries: libbehaviortree_cpp_v3.so: cannot open shared object" | ||
RUN ldconfig | ||
|
||
WORKDIR /Groot/build | ||
CMD ./Groot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,237 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"id": "0859c0c1-ec2d-4197-96b7-2d12f6cf1cd9", | ||
"name": "backyard", | ||
"type": "lawn", | ||
"fill": "#00ff00" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[ | ||
[ | ||
-43.20007309019093, | ||
-22.899998069679626 | ||
], | ||
[ | ||
-43.20006688758278, | ||
-22.900006871946417 | ||
], | ||
[ | ||
-43.200002346928954, | ||
-22.899972743856168 | ||
], | ||
[ | ||
-43.19999715014916, | ||
-22.899979847441557 | ||
], | ||
[ | ||
-43.200002011652515, | ||
-22.899984943491773 | ||
], | ||
[ | ||
-43.20000352039554, | ||
-22.899987877581054 | ||
], | ||
[ | ||
-43.200001508737785, | ||
-22.89999529001645 | ||
], | ||
[ | ||
-43.19999882652931, | ||
-22.899998687383203 | ||
], | ||
[ | ||
-43.199989774073345, | ||
-22.900001003768594 | ||
], | ||
[ | ||
-43.19998390674169, | ||
-22.900001621472214 | ||
], | ||
[ | ||
-43.199976027752285, | ||
-22.89999992278834 | ||
], | ||
[ | ||
-43.199966304744464, | ||
-22.899997143125205 | ||
], | ||
[ | ||
-43.19991584568825, | ||
-22.89996363273525 | ||
], | ||
[ | ||
-43.199949708576725, | ||
-22.89991792269754 | ||
], | ||
[ | ||
-43.20007309019093, | ||
-22.899998069679626 | ||
] | ||
] | ||
], | ||
"type": "Polygon" | ||
}, | ||
"id": 0 | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"id": "6387f8e9-bc4e-48a5-95e2-fedd3b3b5c09", | ||
"name": "driveway", | ||
"type": "navigation", | ||
"fill": "#ffffff" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[ | ||
[ | ||
-43.19991601332646, | ||
-22.89996363273525 | ||
], | ||
[ | ||
-43.19996664002096, | ||
-22.899996988699343 | ||
], | ||
[ | ||
-43.19995825811796, | ||
-22.90000887948092 | ||
], | ||
[ | ||
-43.19990629031864, | ||
-22.8999759867976 | ||
], | ||
[ | ||
-43.19991601332646, | ||
-22.89996363273525 | ||
] | ||
] | ||
], | ||
"type": "Polygon" | ||
}, | ||
"id": 1 | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"id": "a7a3e913-5e9e-4959-8044-059f40356996", | ||
"type": "lawn", | ||
"fill": "#00ff00" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[ | ||
[ | ||
-43.19990654164289, | ||
-22.899975703751664 | ||
], | ||
[ | ||
-43.19995834180392, | ||
-22.900008596436095 | ||
], | ||
[ | ||
-43.19996638843159, | ||
-22.899996860080364 | ||
], | ||
[ | ||
-43.199998742577066, | ||
-22.899998713189134 | ||
], | ||
[ | ||
-43.20000008368183, | ||
-22.899983116188707 | ||
], | ||
[ | ||
-43.200020703164, | ||
-22.90003299569868 | ||
], | ||
[ | ||
-43.20000259825318, | ||
-22.900055850700596 | ||
], | ||
[ | ||
-43.199891286578776, | ||
-22.899990528624386 | ||
], | ||
[ | ||
-43.19990654164289, | ||
-22.899975703751664 | ||
] | ||
] | ||
], | ||
"type": "Polygon" | ||
}, | ||
"id": 2 | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"fill": "#ff0000", | ||
"type": "obstacle", | ||
"name": "tree", | ||
"id": "90cd67cb-a606-4878-be1c-2c08f8fc085d" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[ | ||
[ | ||
-43.19996538260324, | ||
-22.899949451369395 | ||
], | ||
[ | ||
-43.199974435058095, | ||
-22.899951304478776 | ||
], | ||
[ | ||
-43.199975776162916, | ||
-22.899958871343117 | ||
], | ||
[ | ||
-43.199966891345184, | ||
-22.899964585096825 | ||
], | ||
[ | ||
-43.1999563301473, | ||
-22.899959180193974 | ||
], | ||
[ | ||
-43.19995666542377, | ||
-22.899953312014105 | ||
], | ||
[ | ||
-43.19996538260324, | ||
-22.899949451369395 | ||
] | ||
] | ||
], | ||
"type": "Polygon" | ||
}, | ||
"id": 3 | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"id": "0706aa36-bf67-4831-9472-be2c4275815d", | ||
"type": "docking_station", | ||
"name": "First docking station" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[ | ||
-43.1999118467661, | ||
-22.899969157137434 | ||
], | ||
[ | ||
-43.19991519952754, | ||
-22.89997131909847 | ||
] | ||
], | ||
"type": "LineString" | ||
} | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
src/openmower/config/sim-config.env.sh → .devcontainer/openmower_config.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export OM_DATUM_LAT=-22.9 | ||
export OM_DATUM_LONG=-43.2 | ||
export OM_MAP_PATH=$HOME/.openmower/map.geojson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.