-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How can I execute the box_dimensioner_multicam_demo.py for ROS communication? #2855
Comments
Hi @kevinDrawn Pyrealsense2 code can be run from ROS as a node script. An example of such a script provided by the ROS wrapper is show_center_depth.py, which displays the depth value at the center of the camera's view. The command below demonstrates how to run the node script.
|
Hello! Thanks your reply.
And then, the below command was came out.
This command are given the instruction to place an object on the checkerboard, but the grid is not being generated even when I place the object. How can I proceed? |
The box_dimensioner_multicam example has a 'sweet spot' distance to place the camera away from the chessboard. The program may not work as expected if the camera is at a distance outside of that range. Placing the camera between 0.5 and 1 meters from the chessboard is likely to work best. |
|
box_dimensioner_multicam was written years before the D405 model was released. Whilst most 400 Series cameras use the same depth unit scale of '0.001', the D405 uses a different depth scale of 0.01 because it is designed for short-range capture. It is possible to change the default depth scale of the camera with program scripting. Python code for doing so with the rs.option.depth_units instruction is at IntelRealSense/librealsense#10973 The camera should be in a fixed position, yes. It is possible to use box_dimensioner_multicam without the chessboard when only using one camera with it. Details about doing so can be found at IntelRealSense/librealsense#9951 (comment) |
Where do i modify for setting the depth scale of the camera?? box_dimensioner_multicam_demo.py ? Or realsense_device_manager.py ? I added the code line in the 'realsense_device_manager.py'. def enable_emitter(self, enable_ir_emitter=True): |
realsense_device_manager.py would be the appropriate file to make the edit in, yes, as it handles the camera device. The scale would be set to 0.001 rather than 0.01, as the D405's scale is already 0.01 by default and so you would not be changing anything by using 0.01. |
Thank you Bro!! I solve my problem! |
That's great to hear that you have a solution. Thanks very much for the update! |
Case closed due to solution achieved and no further comments received. |
My Ros environment is Ubuntu 18.04 Melodic. And Depth Camera Model is D405.
I want to run the code "box_dimensioner_multicam_demo.py" for Box dimensions calculation.
I want to communicate 3D object information within ROS. (Width, Length, Height)
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples/box_dimensioner_multicam
#11157
Realsense Camera 3D Object Detection
The text was updated successfully, but these errors were encountered: