IntelRealSense / realsense-ros

ROS Wrapper for Intel(R) RealSense(TM) Cameras
http://wiki.ros.org/RealSense
Apache License 2.0
2.59k stars 1.76k forks source link

could you comment on occupancy package, please? #1306

Closed AndreV84 closed 4 years ago

AndreV84 commented 4 years ago

could you comment on occupancy package, please? Dockerfile

FROM nvcr.io/nvidia/l4t-base:r32.4.3
RUN apt-get update -y
RUN apt install -y wget software-properties-common apt-utils  curl git
RUN /bin/bash  -c 'echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros-latest.list'
RUN  apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE ||  apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key
RUN apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE ||  apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
RUN add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
RUN apt-get update -y
ENV TZ America/Los_Angeles
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y tzdata git curl cmake wget mc mlocate 
RUN DEBIAN_FRONTEND="noninteractive" apt install -y ros-melodic-desktop clang-format ros-melodic-desktop-full python-pip python3-pip  python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential 
RUN apt update -y
#RUN rm -rf /var/lib/apt/lists
RUN  apt-get install -y librealsense2-dev librealsense2-utils
RUN apt install -y ros-melodic-ddynamic-reconfigure
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN rm -rf /var/lib/apt/lists
WORKDIR /home/nvidia/ws
RUN wget https://github.com/IntelRealSense/librealsense/archive/v2.36.0.tar.gz && tar -xvf v2.36.0.tar.gz
RUN cd librealsense-2.36.0 && ls && mkdir build && cd build && cmake ../ -DFORCE_RSUSB_BACKEND=true -DBUILD_PYTHON_BINDINGS=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true && make -j8 && make install
RUN mkdir src && cd src &&  git clone https://github.com/intel-ros/realsense.git -b development 
#  && git clone https://github.com/slamtec/rplidar_ros
COPY realsense-ros/occupancy src/occupancy
RUN rosdep init && rosdep update

RUN /bin/bash -c '. /opt/ros/melodic/setup.bash;  cd /home/nvidia/ws; rosdep install --from-paths src --ignore-src; catkin_make'

Full error

docker run -it --rm --net=host -e DISPLAY=$DISPLAY --ipc=host --privileged -v /tmp/.X11-unix/:/tmp/.X11-unix/ -v /tmp/argus_socket:/tmp/argus_socket --cap-add SYS_PTRACE occupancy:latest /bin/bash -c '. /opt/ros/melodic/setup.bash; source devel/setup.bash; roslaunch occupancy occupancy_live_rviz.launch'
... logging to /root/.ros/log/8944c85e-cdba-11ea-9d76-00044bcb9a37/roslaunch-jetson-agx001-54.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://jetson-agx001:44051/

SUMMARY
========

PARAMETERS
 * /DepthOfInterestMax: 2.0
 * /DepthOfInterestMin: 0.2
 * /HeightOfInterestMax: 0.05
 * /HeightOfInterestMin: -0.05
 * /d400/realsense2_camera/accel_fps: 0
 * /d400/realsense2_camera/accel_frame_id: d400_accel_frame
 * /d400/realsense2_camera/accel_optical_frame_id: d400_accel_optica...
 * /d400/realsense2_camera/align_depth: True
 * /d400/realsense2_camera/aligned_depth_to_color_frame_id: d400_aligned_dept...
 * /d400/realsense2_camera/aligned_depth_to_fisheye1_frame_id: d400_aligned_dept...
 * /d400/realsense2_camera/aligned_depth_to_fisheye2_frame_id: d400_aligned_dept...
 * /d400/realsense2_camera/aligned_depth_to_fisheye_frame_id: d400_aligned_dept...
 * /d400/realsense2_camera/aligned_depth_to_infra1_frame_id: d400_aligned_dept...
 * /d400/realsense2_camera/aligned_depth_to_infra2_frame_id: d400_aligned_dept...
 * /d400/realsense2_camera/allow_no_texture_points: False
 * /d400/realsense2_camera/base_frame_id: d400_link
 * /d400/realsense2_camera/calib_odom_file: 
 * /d400/realsense2_camera/clip_distance: -2.0
 * /d400/realsense2_camera/color_fps: 30
 * /d400/realsense2_camera/color_frame_id: d400_color_frame
 * /d400/realsense2_camera/color_height: 480
 * /d400/realsense2_camera/color_optical_frame_id: d400_color_optica...
 * /d400/realsense2_camera/color_width: 640
 * /d400/realsense2_camera/depth_fps: 30
 * /d400/realsense2_camera/depth_frame_id: d400_depth_frame
 * /d400/realsense2_camera/depth_height: 480
 * /d400/realsense2_camera/depth_optical_frame_id: d400_depth_optica...
 * /d400/realsense2_camera/depth_width: 640
 * /d400/realsense2_camera/device_type: d4.5
 * /d400/realsense2_camera/enable_accel: False
 * /d400/realsense2_camera/enable_color: True
 * /d400/realsense2_camera/enable_depth: True
 * /d400/realsense2_camera/enable_fisheye1: False
 * /d400/realsense2_camera/enable_fisheye2: False
 * /d400/realsense2_camera/enable_fisheye: False
 * /d400/realsense2_camera/enable_gyro: False
 * /d400/realsense2_camera/enable_infra1: False
 * /d400/realsense2_camera/enable_infra2: False
 * /d400/realsense2_camera/enable_infra: False
 * /d400/realsense2_camera/enable_pointcloud: False
 * /d400/realsense2_camera/enable_pose: False
 * /d400/realsense2_camera/enable_sync: False
 * /d400/realsense2_camera/filters: pointcloud
 * /d400/realsense2_camera/fisheye1_frame_id: d400_fisheye1_frame
 * /d400/realsense2_camera/fisheye1_optical_frame_id: d400_fisheye1_opt...
 * /d400/realsense2_camera/fisheye2_frame_id: d400_fisheye2_frame
 * /d400/realsense2_camera/fisheye2_optical_frame_id: d400_fisheye2_opt...
 * /d400/realsense2_camera/fisheye_fps: 30
 * /d400/realsense2_camera/fisheye_frame_id: d400_fisheye_frame
 * /d400/realsense2_camera/fisheye_height: 0
 * /d400/realsense2_camera/fisheye_optical_frame_id: d400_fisheye_opti...
 * /d400/realsense2_camera/fisheye_width: 0
 * /d400/realsense2_camera/gyro_fps: 0
 * /d400/realsense2_camera/gyro_frame_id: d400_gyro_frame
 * /d400/realsense2_camera/gyro_optical_frame_id: d400_gyro_optical...
 * /d400/realsense2_camera/imu_optical_frame_id: d400_imu_optical_...
 * /d400/realsense2_camera/infra1_frame_id: d400_infra1_frame
 * /d400/realsense2_camera/infra1_optical_frame_id: d400_infra1_optic...
 * /d400/realsense2_camera/infra2_frame_id: d400_infra2_frame
 * /d400/realsense2_camera/infra2_optical_frame_id: d400_infra2_optic...
 * /d400/realsense2_camera/infra_fps: 30
 * /d400/realsense2_camera/infra_height: 480
 * /d400/realsense2_camera/infra_width: 640
 * /d400/realsense2_camera/initial_reset: False
 * /d400/realsense2_camera/json_file_path: 
 * /d400/realsense2_camera/linear_accel_cov: 0.01
 * /d400/realsense2_camera/odom_frame_id: d400_odom_frame
 * /d400/realsense2_camera/pointcloud_texture_index: 0
 * /d400/realsense2_camera/pointcloud_texture_stream: RS2_STREAM_COLOR
 * /d400/realsense2_camera/pose_frame_id: d400_pose_frame
 * /d400/realsense2_camera/pose_optical_frame_id: d400_pose_optical...
 * /d400/realsense2_camera/publish_odom_tf: True
 * /d400/realsense2_camera/publish_tf: True
 * /d400/realsense2_camera/rosbag_filename: 
 * /d400/realsense2_camera/serial_no: D400_SN
 * /d400/realsense2_camera/tf_publish_rate: 0.0
 * /d400/realsense2_camera/topic_odom_in: d400/odom_in
 * /d400/realsense2_camera/unite_imu_method: none
 * /d400/realsense2_camera/usb_port_id: 
 * /resolution: 0.03
 * /rosdistro: melodic
 * /rosversion: 1.14.6
 * /t265/realsense2_camera/accel_fps: 0
 * /t265/realsense2_camera/accel_frame_id: t265_accel_frame
 * /t265/realsense2_camera/accel_optical_frame_id: t265_accel_optica...
 * /t265/realsense2_camera/align_depth: False
 * /t265/realsense2_camera/aligned_depth_to_color_frame_id: t265_aligned_dept...
 * /t265/realsense2_camera/aligned_depth_to_fisheye1_frame_id: t265_aligned_dept...
 * /t265/realsense2_camera/aligned_depth_to_fisheye2_frame_id: t265_aligned_dept...
 * /t265/realsense2_camera/aligned_depth_to_fisheye_frame_id: t265_aligned_dept...
 * /t265/realsense2_camera/aligned_depth_to_infra1_frame_id: t265_aligned_dept...
 * /t265/realsense2_camera/aligned_depth_to_infra2_frame_id: t265_aligned_dept...
 * /t265/realsense2_camera/allow_no_texture_points: False
 * /t265/realsense2_camera/base_frame_id: t265_link
 * /t265/realsense2_camera/calib_odom_file: 
 * /t265/realsense2_camera/clip_distance: -1.0
 * /t265/realsense2_camera/color_fps: 30
 * /t265/realsense2_camera/color_frame_id: t265_color_frame
 * /t265/realsense2_camera/color_height: 480
 * /t265/realsense2_camera/color_optical_frame_id: t265_color_optica...
 * /t265/realsense2_camera/color_width: 640
 * /t265/realsense2_camera/depth_fps: 30
 * /t265/realsense2_camera/depth_frame_id: t265_depth_frame
 * /t265/realsense2_camera/depth_height: 480
 * /t265/realsense2_camera/depth_optical_frame_id: t265_depth_optica...
 * /t265/realsense2_camera/depth_width: 640
 * /t265/realsense2_camera/device_type: t265
 * /t265/realsense2_camera/enable_accel: False
 * /t265/realsense2_camera/enable_color: True
 * /t265/realsense2_camera/enable_depth: True
 * /t265/realsense2_camera/enable_fisheye1: False
 * /t265/realsense2_camera/enable_fisheye2: False
 * /t265/realsense2_camera/enable_fisheye: False
 * /t265/realsense2_camera/enable_gyro: False
 * /t265/realsense2_camera/enable_infra1: False
 * /t265/realsense2_camera/enable_infra2: False
 * /t265/realsense2_camera/enable_infra: False
 * /t265/realsense2_camera/enable_pointcloud: False
 * /t265/realsense2_camera/enable_pose: True
 * /t265/realsense2_camera/enable_sync: False
 * /t265/realsense2_camera/filters: 
 * /t265/realsense2_camera/fisheye1_frame_id: t265_fisheye1_frame
 * /t265/realsense2_camera/fisheye1_optical_frame_id: t265_fisheye1_opt...
 * /t265/realsense2_camera/fisheye2_frame_id: t265_fisheye2_frame
 * /t265/realsense2_camera/fisheye2_optical_frame_id: t265_fisheye2_opt...
 * /t265/realsense2_camera/fisheye_fps: 30
 * /t265/realsense2_camera/fisheye_frame_id: t265_fisheye_frame
 * /t265/realsense2_camera/fisheye_height: 0
 * /t265/realsense2_camera/fisheye_optical_frame_id: t265_fisheye_opti...
 * /t265/realsense2_camera/fisheye_width: 0
 * /t265/realsense2_camera/gyro_fps: 0
 * /t265/realsense2_camera/gyro_frame_id: t265_gyro_frame
 * /t265/realsense2_camera/gyro_optical_frame_id: t265_gyro_optical...
 * /t265/realsense2_camera/imu_optical_frame_id: t265_imu_optical_...
 * /t265/realsense2_camera/infra1_frame_id: t265_infra1_frame
 * /t265/realsense2_camera/infra1_optical_frame_id: t265_infra1_optic...
 * /t265/realsense2_camera/infra2_frame_id: t265_infra2_frame
 * /t265/realsense2_camera/infra2_optical_frame_id: t265_infra2_optic...
 * /t265/realsense2_camera/infra_fps: 30
 * /t265/realsense2_camera/infra_height: 480
 * /t265/realsense2_camera/infra_width: 640
 * /t265/realsense2_camera/initial_reset: False
 * /t265/realsense2_camera/json_file_path: 
 * /t265/realsense2_camera/linear_accel_cov: 0.01
 * /t265/realsense2_camera/odom_frame_id: t265_odom_frame
 * /t265/realsense2_camera/pointcloud_texture_index: 0
 * /t265/realsense2_camera/pointcloud_texture_stream: RS2_STREAM_COLOR
 * /t265/realsense2_camera/pose_frame_id: t265_pose_frame
 * /t265/realsense2_camera/pose_optical_frame_id: t265_pose_optical...
 * /t265/realsense2_camera/publish_odom_tf: True
 * /t265/realsense2_camera/publish_tf: True
 * /t265/realsense2_camera/rosbag_filename: 
 * /t265/realsense2_camera/serial_no: T265_SN
 * /t265/realsense2_camera/tf_publish_rate: 0.0
 * /t265/realsense2_camera/topic_odom_in: odom_in
 * /t265/realsense2_camera/unite_imu_method: none
 * /t265/realsense2_camera/usb_port_id: 

NODES
  /
    occupancy_node (occupancy/occupancy_node)
    rviz (rviz/rviz)
    t265_to_d400 (tf/static_transform_publisher)
  /d400/
    realsense2_camera (nodelet/nodelet)
    realsense2_camera_manager (nodelet/nodelet)
  /t265/
    realsense2_camera (nodelet/nodelet)
    realsense2_camera_manager (nodelet/nodelet)

auto-starting new master
process[master]: started with pid [64]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 8944c85e-cdba-11ea-9d76-00044bcb9a37
process[rosout-1]: started with pid [75]
started core service [/rosout]
process[t265/realsense2_camera_manager-2]: started with pid [82]
[ INFO] [1595601167.161730121]: Initializing nodelet with 8 worker threads.
process[t265/realsense2_camera-3]: started with pid [83]
[ INFO] [1595601167.809086587]: RealSense ROS v2.2.15
[ INFO] [1595601167.809206848]: Built with LibRealSense v2.36.0
[ INFO] [1595601167.809302851]: Running with LibRealSense v2.36.0
[ INFO] [1595601167.835399418]:  
process[d400/realsense2_camera_manager-4]: started with pid [99]
[ INFO] [1595601167.968168796]: Initializing nodelet with 8 worker threads.
process[d400/realsense2_camera-5]: started with pid [120]
[ INFO] [1595601168.301696460]: Device with serial number was found.

[ INFO] [1595601168.301904819]: Device with physical ID 1-4-10 was found.
[ INFO] [1595601168.301967158]: Device with name Intel RealSense D435I was found.
[ INFO] [1595601168.303255588]: Device with port number 1-4 was found.
[ INFO] [1595601168.513604751]: RealSense ROS v2.2.15
[ INFO] [1595601168.513695443]: Built with LibRealSense v2.36.0
[ INFO] [1595601168.513928955]: Running with LibRealSense v2.36.0
[ INFO] [1595601168.540568421]:  
process[t265_to_d400-6]: started with pid [151]
[ INFO] [1595601168.752753427]: Device with serial number  was found.

[ INFO] [1595601168.752914873]: Device with physical ID 2-1-2 was found.
[ INFO] [1595601168.752966971]: Device with name Intel RealSense D435 was found.
[ INFO] [1595601168.754062915]: Device with port number 2-1 was found.
[ INFO] [1595601168.831160378]: Device with serial number was found.

[ INFO] [1595601168.831272286]: Device with physical ID 2-3-7 was found.
[ INFO] [1595601168.831318080]: Device with name Intel RealSense T265 was found.
[ INFO] [1595601168.832759156]: Device with port number 2-3 was found.
[ INFO] [1595601168.892791390]: Device with serial number  was found.

[ INFO] [1595601168.892955748]: Device with physical ID 1-4-10 was found.
[ INFO] [1595601168.893002758]: Device with name Intel RealSense D435I was found.
[ INFO] [1595601168.894234930]: Device with port number 1-4 was found.
[ERROR] [1595601168.931112337]: The requested device with serial number T265_SN and device name containing t265 is NOT found. Will Try again.
process[occupancy_node-7]: started with pid [188]
[ INFO] [1595601169.200707402]: Device with serial number  was found.

[ INFO] [1595601169.200887376]: Device with physical ID 2-1-2 was found.
[ INFO] [1595601169.201034773]: Device with name Intel RealSense D435 was found.
[ INFO] [1595601169.201911637]: Device with port number 2-1 was found.
[ INFO] [1595601169.238266785]: Device with serial number was found.

[ INFO] [1595601169.238700529]: Device with physical ID 2-3-7 was found.
[ INFO] [1595601169.239602514]: Device with name Intel RealSense T265 was found.
[ INFO] [1595601169.241241741]: Device with port number 2-3 was found.
[ERROR] [1595601169.335349328]: The requested device with serial number D400_SN and device name containing d4.5 is NOT found. Will Try again.
process[rviz-8]: started with pid [225]
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.
[rviz-8] process has died [pid 225, exit code 1, cmd /opt/ros/melodic/lib/rviz/rviz -d /home/nvidia/ws/src/occupancy/rviz/pointcloud_w_occupancy.rviz __name:=rviz __log:=/root/.ros/log/8944c85e-cdba-11ea-9d76-00044bcb9a37/rviz-8.log].
log file: /root/.ros/log/8944c85e-cdba-11ea-9d76-00044bcb9a37/rviz-8*.log
[ INFO] [1595601174.947108420]:  
[ INFO] [1595601175.350500229]:  
 24/07 07:32:55,360 ERROR [547063062912] (handle-libusb.h:95) failed to claim usb interface: 0, error: RS2_USB_STATUS_BUSY
[ INFO] [1595601175.382723067]: Device with serial number was found.

[ INFO] [1595601175.382855519]: Device with physical ID 1-4-10 was found.
[ INFO] [1595601175.382925762]: Device with name Intel RealSense D435I was found.
 24/07 07:32:55,383 WARNING [547205673344] (rs.cpp:304) null pointer passed for argument "device"
[ WARN] [1595601175.383795490]: Device 1/3 failed with exception: failed to set power state
[ INFO] [1595601175.384034698]: Device with port number 1-4 was found.
 24/07 07:32:55,492 ERROR [547155317120] (handle-libusb.h:95) failed to claim usb interface: 0, error: RS2_USB_STATUS_BUSY
 24/07 07:32:55,514 WARNING [547205673344] (rs.cpp:304) null pointer passed for argument "device"
[ WARN] [1595601175.514474488]: Device 2/3 failed with exception: failed to set power state
[ INFO] [1595601175.525842582]: Device with serial number  was found.

[ INFO] [1595601175.525937882]: Device with physical ID 2-3-7 was found.
[ INFO] [1595601175.525989852]: Device with name Intel RealSense T265 was found.
[ INFO] [1595601175.526952319]: Device with port number 2-3 was found.
[ERROR] [1595601175.622745887]: The requested device with serial number D400_SN and device name containing d4.5 is NOT found. Will Try again.
[ INFO] [1595601175.762480351]: Device with serial number  was found.

[ INFO] [1595601175.762694791]: Device with physical ID 2-1-2 was found.
[ INFO] [1595601175.762787434]: Device with name Intel RealSense D435 was found.
[ INFO] [1595601175.763767214]: Device with port number 2-1 was found.
[ INFO] [1595601175.798401787]: Device with serial number  was found.

[ INFO] [1595601175.798556161]: Device with physical ID 2-3-7 was found.
[ INFO] [1595601175.798612803]: Device with name Intel RealSense T265 was found.
[ INFO] [1595601175.799594087]: Device with port number 2-3 was found.
[ERROR] [1595601175.896045823]: The requested device with serial number T265_SN and device name containing t265 is NOT found. Will Try again.
[ INFO] [1595601181.638524608]:  
[ INFO] [1595601181.912309266]:  
 24/07 07:33:01,927 ERROR [547180495232] (handle-libusb.h:95) failed to claim usb interface: 0, error: RS2_USB_STATUS_BUSY
 24/07 07:33:01,938 WARNING [547205673344] (ds5-factory.cpp:669) Cannot read RGB calibration table
 24/07 07:33:01,938 WARNING [547205673344] (types.cpp:78) Calibration data invald, buffer too small : expected 16 , actual: 0
 24/07 07:33:01,938 WARNING [547205673344] (ds5-factory.cpp:784) invalid RGB extrinsic was identified, recovery routine was invoked
[ INFO] [1595601182.256312418]: Device with serial number was found.

[ INFO] [1595601182.256447687]: Device with physical ID 1-4-10 was found.
[ INFO] [1595601182.256505737]: Device with name Intel RealSense D435I was found.
[ INFO] [1595601182.257573136]: Device with port number 1-4 was found.
[ INFO] [1595601182.561576496]: Device with serial number  was found.

[ INFO] [1595601182.561728149]: Device with physical ID 2-1-2 was found.
[ INFO] [1595601182.561792727]: Device with name Intel RealSense D435 was found.
[ INFO] [1595601182.562865855]: Device with port number 2-1 was found.
[ INFO] [1595601182.597407208]: Device with serial number  was found.

[ INFO] [1595601182.597545902]: Device with physical ID 2-3-7 was found.
[ INFO] [1595601182.598060512]: Device with name Intel RealSense T265 was found.
[ INFO] [1595601182.599275565]: Device with port number 2-3 was found.
[ERROR] [1595601182.694879718]: The requested device with serial number T265_SN and device name containing t265 is NOT found. Will Try again.
 24/07 07:33:07,957 WARNING [547205673344] (types.cpp:78) set_xu(ctrl=1) failed! Last Error: Resource temporarily unavailable
 24/07 07:33:07,957 ERROR [547205673344] (ds5-factory.cpp:823) RGB Extrinsic recovery routine failed
 24/07 07:33:07,978 WARNING [547205673344] (types.cpp:78) hwmon command 0x15( 20 0 0 0 ) failed (response 0= Success)
 24/07 07:33:07,978 WARNING [547205673344] (ds5-factory.cpp:669) Cannot read RGB calibration table
 24/07 07:33:07,978 WARNING [547205673344] (types.cpp:78) Calibration data invald, buffer too small : expected 16 , actual: 0
[ INFO] [1595601187.978966725]: Device with serial number  was found.

[ INFO] [1595601187.979229998]: Device with physical ID 1-4-10 was found.
[ INFO] [1595601187.979398644]: Device with name Intel RealSense D435I was found.

Originally posted by @AndreV84 in https://github.com/IntelRealSense/realsense-ros/issues/1287#issuecomment-663577090

AndreV84 commented 4 years ago
FROM nvcr.io/nvidia/l4t-base:r32.4.3
RUN apt-get update -y
RUN apt install -y wget software-properties-common apt-utils  curl git
RUN /bin/bash  -c 'echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros-latest.list'
RUN  apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE ||  apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key
RUN apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE ||  apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
RUN add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
RUN apt-get update -y
ENV TZ America/Los_Angeles
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y tzdata git curl cmake wget mc mlocate 
RUN DEBIAN_FRONTEND="noninteractive" apt install -y ros-melodic-desktop clang-format ros-melodic-desktop-full python-pip python3-pip  python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential 
RUN apt update -y
#RUN rm -rf /var/lib/apt/lists
RUN  apt-get install -y librealsense2-dev librealsense2-utils
RUN apt install -y ros-melodic-ddynamic-reconfigure ros-melodic-rtabmap-ros
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN rm -rf /var/lib/apt/lists
WORKDIR /home/nvidia/ws
RUN wget https://github.com/IntelRealSense/librealsense/archive/v2.36.0.tar.gz && tar -xvf v2.36.0.tar.gz
RUN cd librealsense-2.36.0 && ls && mkdir build && cd build && cmake ../ -DFORCE_RSUSB_BACKEND=true -DBUILD_PYTHON_BINDINGS=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true && make -j8 && make install
RUN mkdir src && cd src &&  git clone https://github.com/intel-ros/realsense.git -b development 
#  && git clone https://github.com/slamtec/rplidar_ros
COPY realsense-ros/occupancy src/occupancy
RUN rosdep init && rosdep update

RUN /bin/bash -c '. /opt/ros/melodic/setup.bash;  cd /home/nvidia/ws; rosdep install --from-paths src --ignore-src; catkin_make
RealSenseSupport commented 4 years ago

@AndreV84 Could you please provide more detailed information about this ticket?

Camera Model: Firmware Version: Operating System & Version: Platform: SDK Version: ROS Wrapper Version:

AndreV84 commented 4 years ago

Hello, Thank you for following up. tried cameras D453i & d435, also t265 and L515; firmware versions latest; OS Linux tegra; hardware arm nvidia Jetson AGX ; basically the error log contains firmware verrsion & sdk version etc. You should be able to read all corresponding information from the first post that contains the full error log:

]: started with pid [83]
[ INFO] [1595601167.809086587]: RealSense ROS v2.2.15
[ INFO] [1595601167.809206848]: Built with LibRealSense v2.36.0
[ INFO] [1595601167.809302851]: Running with LibRealSense v2.36.0
[ INFO] [1595601167.835399418]:  

Maybe you could also let me know how to save point cloud dfrom combined t265&d435? from combined t265&d435&l515? how to save point cloud outputs from them? without using any GUI, but from terminal, using command?

RealSenseSupport commented 4 years ago

@AndreV84 We have one branch about occupancy mapping. Not sure if you have read about it. Please see https://github.com/IntelRealSense/realsense-ros/tree/occupancy-mapping#occupancy-mapping-with-t265-and-d435d415 You can try based on this.

AndreV84 commented 4 years ago

Thank you for sharing the url! I shall try it on Nvidia Jetson Xavier device. Also within docker container. still odds are reasonable that it will work, huh?

AndreV84 commented 4 years ago

from devs "The problem is rviz doesn’t address 3D reconstruction Rviz is the real-time pose You can see it in rviz But you need something to make all the frames combine" Is there any solution for the concern quoted? Thanks

samurairepo commented 4 years ago

@AndreV84 We have one branch about occupancy mapping. Not sure if you have read about it. Please see https://github.com/IntelRealSense/realsense-ros/tree/occupancy-mapping#occupancy-mapping-with-t265-and-d435d415 You can try based on this.

This branch does not seem to be maintained and it did not work for me and several other people. I have tried on RPI4 and Nano with same error (Ubuntu 18, ros-melodic). If you follow the steps, you will get same error, namely for some reason T265 wont launch when D415 is launched. Seperately, they work fine in both realsense-viewer and other example lauch files.

RealSenseSupport commented 4 years ago

@samurairepo Could you please provide more details about the error such as the log or snapshot? And what's the version of librealsense and FW used when you get the issue? Thanks!

RealSenseSupport commented 4 years ago

@samurairepo I just tried this https://github.com/IntelRealSense/realsense-ros/tree/occupancy-mapping#occupancy-mapping-with-t265-and-d435d415 on my Ubuntu18.04 setup and didn't any error. Could you please double check https://github.com/IntelRealSense/realsense-ros/blob/occupancy-mapping/README.md to see if any step missing in your testing? Thanks!

RealSenseSupport commented 4 years ago

@AndreV84 @samurairepo Any other questions about this? Looking forward to your update. Thanks!

AndreV84 commented 4 years ago

Thank you for the update! I just notetd just I should try https://github.com/IntelRealSense/realsense-ros/tree/occupancy-mapping#occupancy-mapping-with-t265-and-d435d415 May I know what is the processor instrtuction set of the computer u used? x84_64?

RealSenseSupport commented 4 years ago

@AndreV84 My setup is Intel Core i3-3227U @1.9GHz x 4, 64bit. For your reference. Thanks!

RealSenseSupport commented 4 years ago

@AndreV84 Did you get chance to try and any update? Thanks!

AndreV84 commented 4 years ago

lets close it as for today.