Skip to content
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

d435 urdf displays mesh incorrectly #459

Closed
rongoldman-tri opened this issue Sep 6, 2018 · 3 comments
Closed

d435 urdf displays mesh incorrectly #459

rongoldman-tri opened this issue Sep 6, 2018 · 3 comments

Comments

@rongoldman-tri
Copy link

Hi. We just added the D435 urdf to our robot model and when it is displayed the camera orientation is off by 90 degrees.

realsense-current

This is showing the camera_link frame and also the camera_right_ir_optical_frame.

By changing line 49 so the roll is ${M_PI} instead of ${M_PI/2} to:

  `<origin xyz="${d435_cam_mount_from_center_offset} 0.0 ${d435_cam_height/2}" rpy="${M_PI} 0 ${M_PI/2}"/>`

it displays properly:

realsense-corrected

Note the origin tag doesn't seem to affect displaying a box, only the mesh has the problem. Whether roll is pi or pi/2 the display for the box is:

realsense-box-uncorrected

thanks,

-- Ron --

@doronhi
Copy link
Contributor

doronhi commented Sep 12, 2018

Hi @rongoldman-tri,
I can't recreate the situation you presented. I run the following command:
roslaunch realsense2_camera view_d435_model.launch

I then Show camera_right_ir_optical_frame and camera_link, set Market Scale to 0.1 and get the following image:
image

Can you tell what are we doing differently?

@rongoldman-tri
Copy link
Author

Thanks for looking into this. The problem was on our side: we had converted the d435.dae mesh to use STL format. The converted STL file introduced the rotation I reported as a bug. Redoing the conversion with MeshLab created a good STL file that preserved the original mesh orientation. So everything is fine & I am closing the issue. Sorry to have bothered you.

-- Ron --

@doronhi
Copy link
Contributor

doronhi commented Sep 13, 2018

No problem. Glad it worked out for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants