Skip to content

Commit 4e90873

Browse files
authoredJan 28, 2023
Merge pull request #31 from hmakelin/hmakelin-gisnav-build
Fixes for Jetson Nano build
2 parents 90a0536 + bf974e2 commit 4e90873

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed
 

‎docker-compose.arm64.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: "3.4"
2+
3+
services:
4+
mapserver:
5+
image: camptocamp/mapserver:latest-arm64

‎docker-compose.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ services:
7070
- driver: nvidia
7171
count: 1
7272
capabilities: [ gpu ]
73-
command: bash -c "source /opt/ros/foxy/setup.bash && source ~/colcon_ws/install/setup.bash && ros2 launch gisnav px4.launch.py"
73+
command: >
74+
bash -c "source /opt/ros/foxy/setup.bash && source ~/colcon_ws/install/setup.bash &&
75+
export LD_PRELOAD=$(find $(pip3 show torch |grep Location: |cut -d' ' -f 2)/torch/lib -name 'libgomp*') &&
76+
ros2 launch gisnav px4.launch.py"
7477
7578
px4:
7679
build:

‎docker/gisnav/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ RUN cd $HOME/colcon_ws/src/gisnav && \
2828
cd weights && \
2929
$HOME/.local/lib/$USERNAME/gdown https://drive.google.com/uc?id=1M-VD35-qdB5Iw-AtbDBCKC7hPolFW9UY
3030

31+
# Install GDAL
32+
RUN sudo apt-get -y upgrade && \
33+
sudo apt-get -y update && \
34+
sudo apt-get -y install software-properties-common && \
35+
sudo add-apt-repository ppa:ubuntugis/ppa && \
36+
sudo apt-get update && \
37+
sudo apt-get -y install gdal-bin libgdal-dev \
38+
3139
# Python dependencies
3240
RUN cd $HOME/colcon_ws/src/gisnav && \
3341
pip3 install -r requirements.txt && \

‎docs/pages/developer_guide/sitl_environment/docker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `docker-compose.yaml` file defines the following services:
1414
* Starts `typhoon_h480` model at KSQL Airport
1515
* `mavros`
1616
* Used for ArduPilot SITL
17-
* `micro_ros_agent`
17+
* `micro-ros-agent`
1818
* Used for PX4 SITL
1919
* `mapserver`
2020
* WMS server with self-hosted [NAIP][2] and [OSM Buildings][3] data covering KSQL airport

‎docs/pages/developer_guide/sitl_environment/install_gisnav.rst

+12
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ ROS version with the ``whereis ros2`` command:
2626
echo "source /opt/ros/foxy/setup.bash" >> ~/.bashrc
2727
echo "source ~/colcon_ws/install/setup.bash" >> ~/.bashrc
2828
29+
Install GDAL
30+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31+
``GDAL`` is required to install the ``geopandas`` Python dependency:
32+
33+
.. code-block:: text
34+
:caption: Install GDAL
35+
36+
sudo apt-get -y install software-properties-common
37+
sudo add-apt-repository ppa:ubuntugis/ppa
38+
sudo apt-get update
39+
sudo apt-get -y install gdal-bin libgdal-dev
40+
2941
Install GISNav
3042
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3143
Install GISNav in your ROS 2 Workspace:

0 commit comments

Comments
 (0)