-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·43 lines (36 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ros:rolling-ros-core-jammy
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y upgrade && apt install -y \
build-essential apt-utils cmake git wget\
libpyside2-dev \
python3-opengl \
libglu1-mesa-dev \
freeglut3-dev \
mesa-common-dev
RUN git clone --depth 1 -b v22.11 https://github.com/PixarAnimationStudios/USD.git
RUN python3 /USD/build_scripts/build_usd.py --build-variant release --no-tests --no-examples --no-tutorials --no-docs --no-python /usr/local/USD
ENV PATH="/usr/local/USD/bin:$PATH"
ENV LD_LIBRARY_PATH="/usr/local/USD/lib:$LD_LIBRARY_PATH"
ENV CMAKE_PREFIX_PATH="/usr/local/USD:$CMAKE_PREFIX_PATH"
# TODO gz-cmake3 and sdf13 install - not working yet
# RUN git clone https://github.com/gazebosim/gz-cmake
# WORKDIR /gz-cmake/build
# RUN cmake .. && make install
# RUN apt-get update && apt-get -y install \
# libsdformat13-dev \
# libsdformat13
RUN apt-get update && apt-get -y install \
libsdformat12-dev \
libsdformat12 \
libignition-utils1-cli-dev \
libignition-common-dev || true
# RUN apt clean && rm -rf /var/lib/apt/lists/*
WORKDIR /
RUN git clone -b ahcorde/fix/usd2sdf_model https://github.com/gazebosim/gz-usd
RUN rm /gz-usd/src/sdf_parser/Geometry.cc
COPY /fix/Geometry.cc /gz-usd/src/sdf_parser/
WORKDIR /gz-usd/build
RUN cmake .. && make -j4
RUN echo 'alias sdf2usd="/gz-usd/build/bin/sdf2usd"' >> ~/.bashrc
RUN echo 'alias usd2sdf="/gz-usd/build/bin/usd2sdf"' >> ~/.bashrc
WORKDIR /userfiles