diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cc5dfe8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +# docker build . -t ubuntu_2204 +ARG IMAGE=ubuntu:22.04 +FROM ${IMAGE} +ARG IMAGE +RUN echo ${IMAGE} + +ENV DEBIAN_FRONTEND="noninteractive" + +# be able to source files +RUN rm /bin/sh && ln -s /bin/bash /bin/sh + +RUN apt-get update -yqq +RUN apt-get upgrade -yqq +RUN apt-get install -yqq apt-utils + +RUN apt-get install -yqq catkin +RUN apt-get install -yqq build-essential +RUN apt-get install -yqq python3-rosdep2 + +# RUN rosdep init +RUN rosdep update +# RUN ROS_DISTRO=one rosdep install --from-paths src --ignore-src -r -s # do a dry-run first +# RUN ROS_DISTRO=one rosdep install --from-paths src --ignore-src -r -y +# RUN catkin_make +RUN apt-get install -yqq libcv-bridge-dev python3-cv-bridge +RUN apt-get install -yqq python3-dynamic-reconfigure libdynamic-reconfigure-config-init-mutex-dev +RUN apt-get install -yqq libimage-transport-dev +RUN apt-get install -yqq libnodeletlib-dev +RUN apt-get install -yqq libnodeletlib-dev + +RUN apt-get install -yqq libx11-dev + +COPY screen_grab /home/catkin_ws/src/screen_grab +WORKDIR /home/catkin_ws diff --git a/screen_grab/CMakeLists.txt b/screen_grab/CMakeLists.txt index 3113c6f..a4f097c 100644 --- a/screen_grab/CMakeLists.txt +++ b/screen_grab/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.3) +cmake_minimum_required(VERSION 3.0.2) project(screen_grab) ## Find catkin macros and libraries @@ -10,7 +10,7 @@ find_package(catkin REQUIRED COMPONENTS image_transport nodelet roscpp - roslint + # roslint sensor_msgs std_msgs ) @@ -24,7 +24,7 @@ find_package(OpenCV REQUIRED COMPONENTS highgui) ## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html # catkin_python_setup() -roslint_cpp() +# roslint_cpp() ################################################ ## Declare ROS messages, services and actions ##