-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Building foxy zed-ros2-wrapper on 18.04, file INSTALL cannot find... #48
Labels
Comments
Dustin created also a Docker container for ROS2 Foxy that includes the ZED wrapper: |
Ah beauty! I adapted that container (cutting out all the stuff I didn't need) and it works perfectly! Many thanks! My adapted dockerfile for reference if anyone else comes across this: ARG BASE_IMAGE=dustynv/ros:foxy-ros-base-l4t-r32.5.0
FROM ${BASE_IMAGE}
SHELL ["/bin/bash", "-c"]
ENV SHELL /bin/bash
ENV DEBIAN_FRONTEND=noninteractive
ARG MAKEFLAGS=-j$(nproc)
ENV LANG=en_US.UTF-8
ENV PYTHONIOENCODING=utf-8
RUN locale-gen en_US en_US.UTF-8 && update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
ENV PYTORCH_PATH="/usr/local/lib/python3.6/dist-packages/torch"
ENV LD_LIBRARY_PATH="${PYTORCH_PATH}/lib:${LD_LIBRARY_PATH}"
ARG ROS_ENVIRONMENT=${ROS_ROOT}/install/setup.bash
# Required packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common \
apt-transport-https \
ca-certificates \
gnupg \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# Fix for "Package 'test_pluginlib' must declare at least one maintainer"
RUN rm -r /opt/ros/foxy/build/pluginlib/prefix/share/test_pluginlib
#
# ZED SDK / zed-ros2-wrapper
# https://github.com/stereolabs/zed-docker/blob/master/3.X/jetpack_4.X/devel/Dockerfile
#
ARG ZED_SDK_URL="https://download.stereolabs.com/zedsdk/3.5/jp45/jetsons"
ARG ZED_SDK_RUN="ZED_SDK_Linux_JP.run"
RUN cd /tmp && \
wget --quiet --show-progress --progress=bar:force:noscroll --no-check-certificate ${ZED_SDK_URL} -O ${ZED_SDK_RUN} && \
chmod +x ${ZED_SDK_RUN} && \
./${ZED_SDK_RUN} silent skip_tools && \
rm -rf /usr/local/zed/resources/* && \
rm -rf ${ZED_SDK_RUN} && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Manually pull dependencies for zed-ros2-wrapper
RUN source ${ROS_ENVIRONMENT} && \
cd ${ROS_ROOT} && \
mkdir src/slam && \
rosinstall_generator --deps --exclude-path ${ROS_ROOT}/src --rosdistro ${ROS_DISTRO} \
diagnostic_updater \
xacro \
> ros2.${ROS_DISTRO}.zed.rosinstall && \
cat ros2.${ROS_DISTRO}.zed.rosinstall && \
vcs import src/slam < ros2.${ROS_DISTRO}.zed.rosinstall && \
apt-get update && \
rosdep install --from-paths src/slam --ignore-src --rosdistro ${ROS_DISTRO} -y --skip-keys "Pangolin libopencv-dev libopencv-contrib-dev libopencv-imgproc-dev python-opencv python3-opencv" && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
colcon build --symlink-install --base-paths src/slam
RUN source ${ROS_ENVIRONMENT} && \
cd ${ROS_ROOT} && \
git clone https://github.com/stereolabs/zed-ros2-wrapper src/slam/zed-ros2-wrapper && \
apt-get update && \
rosdep install --from-paths src/slam --ignore-src --rosdistro ${ROS_DISTRO} -y --skip-keys "rtabmap find_object_2d Pangolin libopencv-dev libopencv-contrib-dev libopencv-imgproc-dev python-opencv python3-opencv" && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
colcon build --symlink-install --base-paths src/slam/zed-ros2-wrapper --cmake-args=-DCMAKE_BUILD_TYPE=Release |
This was referenced Aug 4, 2021
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Hi all,
I'm trying to set up zed-ros2-wrapper on a Jetson running ROS foxy. I'm using the dustynv base container, and installing the ZED SDK, Python API, and wrapper on top.
I don't want to rely on the eloquent branch as all my other containers are running Foxy, and I don't want to risk strange issues down the line with communication between ROS versions.
My Dockerfile is shown below
My
src
folder contains the release version of the wrapper, as well as the ros diagnostics package as I got errors that it was missing before (https://github.com/ros/diagnostics/tree/foxy).I'm getting the following error when building:
I'm not very familiar with C++ and CMakeLists so not too sure what is going wrong. Any help is much appreciated!
The text was updated successfully, but these errors were encountered: