-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (52 loc) · 1.71 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Starting Here
FROM ros:noetic-ros-base-focal
RUN apt-get update
# Utilitaires
RUN apt-get install -y \
git \
cmake \
wget \
tar \
libx11-dev \
xorg-dev \
libssl-dev \
build-essential \
libusb-1.0-0-dev \
libglu1-mesa-dev \
net-tools \
iputils-ping
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
libpcl-dev \
libpcap-dev -y \
libboost-dev -y \
libyaml-cpp-dev \
python3-pip -y \
python3-rosdep -y \
vim -y
RUN apt install libeigen3-dev
RUN pip3 install -U catkin_tools
RUN pip3 install -U rosdep
RUN rosdep update
RUN mkdir workspace
WORKDIR /workspace
RUN echo "Installing Eigen 3 last version ..." && \
#-> Linear algebra library
apt-get install -y libeigen3-dev
RUN echo "Installing PCL ..." && \
apt install libpcl-dev && \
echo "Installing Boost ..." && \
apt install -y libboost-dev && \
apt install -y libboost-thread-dev && \
apt install -y libboost-filesystem-dev
RUN apt install libpcap-dev libyaml-cpp-dev && \
apt install libprotobuf-dev protobuf-compiler -y && \
apt-get install ros-noetic-image-transport -y
RUN mkdir -p rosworkspace/src && \
cd rosworkspace/src && \
git clone https://github.com/HesaiTechnology/HesaiLidar_General_ROS.git --recursive
ENV ROS_SETUP_PATH=/opt/ros/noetic/setup.bash
RUN ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
RUN apt-get install ros-noetic-tf2-tools ros-noetic-rviz -y
RUN rosdep install --from-paths rosworkspace/src/HesaiLidar_General_ROS --ignore-src -r -y
RUN /bin/bash --login -c "cd rosworkspace && source /opt/ros/noetic/setup.bash && catkin_make -DCMAKE_BUILD_TYPE=Release" \
source rosworkspace/devel/setup.bash