-
Notifications
You must be signed in to change notification settings - Fork 20
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
[industrial_reconstruction]: Error processing images into tsdf #11
Comments
I just updated the main branch to print out a more detailed error when this occurs. Try updating to that and let me know what error you see. I suspect the problem has to do with your depth image. Ensure that both your color image and depth image are in the same frame and have all the same camera_info properties. I was able to reproduce this error by using a depth and color image with different properties. Color Camera Image: header:
stamp:
sec: 1705594923
nanosec: 359981312
frame_id: camera_color_optical_frame
height: 360
width: 640
encoding: rgb8
is_bigendian: 0
step: 1920 Depth image that worked: header:
stamp:
sec: 1705594721
nanosec: 695499520
frame_id: camera_color_optical_frame
height: 360
width: 640
encoding: 16UC1
is_bigendian: 0
step: 1280 Depth image that didn't work: header:
stamp:
sec: 1705594741
nanosec: 268154624
frame_id: camera_depth_optical_frame
height: 480
width: 848
encoding: 16UC1
is_bigendian: 0
step: 1696 Notice the size of the images that worked are the same, all other intrinsic properties are also the same. |
@alanroyce2010 Did this resolve your issue? |
Hey I encountered the same issue and solved it by matching the frame_id like you were saying, but now I'm running into a new issue.. The industrial reconstruction node doesn't spit out any errors/complaints and says it generated and saved mesh in the provided path to directory, but there's nothing there when I go check after.. So out of curiosity, which topics did you choose for each parameter when using an Intel RealSense D400 series camera? I'm using a D415 so the topics in the example usage aren't compatible.. EDIT |
The first step I always try when I encounter an empty/no mesh getting generated is setting the tsdf volume min and max to all zeros. This will cause the resulting mesh to not be cropped at all. I also recommend setting live to true so you can see the mesh generating live in RVIZ by subscribing to the marker topic that is being published. |
Hey @marrts thank you so much I managed to generate a mesh with the pointers you suggested here! One thing I might add that might be frustrating to new users is that I couldn't generate the mesh without have the path to the ply file previously existing. That is what was preventing exporting the mesh created. So it might be a silly mistake, but I do think it is worth mentioning to create the results_mesh.ply file before attempting to create mesh. i.e. before So to generate a mesh with this package and a RealSense camera I did the following:
Again thanks for the feedback, and sorry for the lengthy response. I just thought I would share more detail on the process for any other feedback and/or to lend assistance to any other new industrial reconstructors. |
Hi @marrts, @liamcarlos I'm working with a Universal Robot and an Intel Depth Camera D435. I've set up the hardware and software, but when I move the robot, I notice an unusual mesh appearing. Could you provide some guidance on troubleshooting steps to ensure I've correctly set up everything? step2. An static transformation between the camera_link and the flange frame of UR10 step3. running D435 depth camera step4. running industrial_reconstruction step 5. start reconstruction
The mesh will be generate in the x direction of the camera_link frame. As the robot moves, a new mesh appears to be generated in accordance with its new orientation and position. |
Hey @bahman-nouri can you post photos of the mesh you're getting? |
I agree that photos would be helpful. One thing that comes to mind from your description of your setup is I think you might be passing the wrong frame for the To help debug this I'd:
|
@marrts Nice catch! @bahman-nouri yeah you would have to change your tracking frame parameter to the frame_id of those topics, which will most likely be |
I keep getting this error upon calling the service. I am using a ZED2i camera.
This is the code I used
ros2 launch industrial_reconstruction reconstruction.launch.xml depth_image_topic:=/zed/zed_node/depth/depth_registered color_image_topic:=/zed/zed_node/rgb/image_rect_color camera_info_topic:=/zed/zed_node/rgb_raw/camera_info
ros2 service call /start_reconstruction industrial_reconstruction_msgs/srv/StartReconstruction "tracking_frame: 'zed_camera_link'
relative_frame: 'map'
translation_distance: 0.0
rotational_distance: 0.0
live: true
tsdf_params:
voxel_length: 0.02
sdf_trunc: 0.04
min_box_values: {x: 0.05, y: 0.25, z: 0.1}
max_box_values: {x: 7.0, y: 3.0, z: 1.2}
rgbd_params: {depth_scale: 1000.0, depth_trunc: 0.75, convert_rgb_to_intensity: false}"
The text was updated successfully, but these errors were encountered: