View my account

When setting D405 to 848x480 resolution in ROS2 launch file, crashing with "Parameter was not internally declared"

Comments

9 comments

  • MartyG

    Hi Toni Divic  I have not seen that particular warning message before.  Which version of the RealSense ROS2 wrapper are you using, please? 

     

    The appropriate librealsense SDK and RealSense ROS wrapper combination to use with firmware 5.13.0.50 is librealsense 2.51.1 and wrapper 4.51.1.

     

    If you are using the current latest SDK 2.54.2 then you should use wrapper 4.54.1 and firmware version 5.15.1.0.

     

    You could reduce the amount of data bandwidth being used by the camera by using 15 FPS with 1280x720 instead of 30 FPS.

    0
    Comment actions Permalink
  • Toni Divic

    It looks like I've got SDK 2.54.2, I'll try switching to version 2.51.1 and see if the issue persists. What's the easiest way to check the ROS wrapper version?

    Am I correct in my understanding the 848x480 is the recommended resolution for the D405 camera?

    0
    Comment actions Permalink
  • MartyG

    848x480 is the optimal resolution for depth accuracy on most RealSense 400 Series camera models including D405, but using 1280x720 should not significantly impact accuracy and so it should be fine to use instead of 848x480.  Using a different resolution would be a problem only if you were using a lower one such as 640x480, since accuracy will reduce as the resolution is reduced.

     

    The ROS wrapper version is listed at the top of the second half of the launch log.  Below is an example of what the section of the log containing the information looks like.

    [INFO] [realsense2_camera_node-1]: process started with pid [12056]
    [realsense2_camera_node-1] [INFO] [1688191117.827538616] [camera.camera]: RealSense ROS v4.51.1
    [realsense2_camera_node-1] [INFO] [1688191117.828183104] [camera.camera]: Built with LibRealSense v2.51.1
    [realsense2_camera_node-1] [INFO] [1688191117.828385347] [camera.camera]: Running with LibRealSense v2.51.1

     

     

    0
    Comment actions Permalink
  • Toni Divic

    Got it, when I look at the launch log for the versions it says I'm running with the following

    RealSense ROS v4.51.1
    Built with LibRealSense v2.51.1
    Running with LibRealSense v2.51.1

     

    However when I run realsense-viewer, that shows me with LibRealSense v2.54.2. So it seems like the launch file is launching with the correctly match versions (between FW, ROS, and librealsenseSDK), correct? If that's the case, is there another cause for the parameter issue?

    0
    Comment actions Permalink
  • MartyG

    Possibly you have two versions of librealsense (2.54.1 and 2.54.2) installed on your computer.  Whilst this is not ideal as different installations of librealsense can conflict, if you do have two versions of librealsense installed then it does not seem to be causing you serious problems at the moment.

     

    Is your computer Linux or Windows, please?

     

    0
    Comment actions Permalink
  • Toni Divic

    It is a Jetson running Ubuntu 20.04.6. I did just try launch directly with rs_launch.py and it works when I pass in 848x480 via command line. I'll take a look to see if somehow our launch file (which was based on rs_launch.py) has diverged in some way and is creating a problem

    0
    Comment actions Permalink
  • MartyG

    I look forward to your next update.  Good luck!

    0
    Comment actions Permalink
  • Toni Divic

    Found my issue: I had changed the resolution of depth_module and rgb_camera to 848x480, but I forgot that I was also setting the depth_module.auto_exposure_roi manually and had left the right value at 1279 and bottom value at 719. Changing those to 847 and 479 respectively fixed my issue. Thanks for your help!

    0
    Comment actions Permalink
  • MartyG

    You are very welcome.  It's excellent to hear that you found the solution.  Thanks very much for the update!

    0
    Comment actions Permalink

Please sign in to leave a comment.