-
Notifications
You must be signed in to change notification settings - Fork 150
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
remove up_axis tag from DAE meshes #69
Conversation
RViz doesn't respect it anyway ( ros-visualization/rviz#1045 ), but current versions of three.js' ColladaLoader (used in the RobotWebTools, see RobotWebTools/ros3djs#202 ) do! (Since RViz doesn't respect the tag, this does not break the model)
I went through the chain of tickets that lead to this PR and think I have an understanding. But I guess my initial confusion is, is this a problem with ThreeJS, or is ThreeJS correct and our model is wrong but we just don't notice because RViz doesn't care? |
It's the latter - ThreeJS correctly applies the RViz doesn't check for As such, we'll probably modify ThreeJS' ColladaLoader downstream (or petition them to add an option to ignore However, I figured running a one line shell command on the repo to clean things up wouldn't hurt, even if it does not immediately change anything :) If anything, this patch might prevent some confusion when loading the models in a non-RViz, non-ros3djs tool that does respect |
What about Gazebo? The loader there is different than the loader in RVIZ, has this been tested in Gazebo? |
that's a very good question - I'll check just to make sure, but if Gazebo handled things differently from RViz, the model would have been broken in one of the two, but not the other, before this change. |
¯\(ツ)/¯ I don't have much opinion on this... @rctoris I don't think it breaks anything, and can probably be merged. Actually digging into the linked issues I found these:
Which are both Fetch specific and relate back to this Issue. Also, for non Fetch related PRs similar to this one, some have been merged: |
Hello @moriarty. My issue was a little bit different in the sense that Assimp, the openrave mesh handler, and Rviz handles meshes little differently. Making the y-axis up generally solves the issues in openrave. That's what my code in process_urdf does. It may work in Rviz and three.js, but I am highly doubtful, it may work for other systems such as openrave. |
Yes, Y_UP is the default, I believe - so removing the |
Opps, I used the GitHub interface to change this PR to go into |
#105 changed this to -<up_axis>Z_UP</up_axis>
+<up_axis>Y_UP</up_axis>
So I'll close this, it's fixed in melodic-devel |
RViz doesn't respect it anyway ( ros-visualization/rviz#1045 ), but current versions of three.js' ColladaLoader (used in the RobotWebTools, see RobotWebTools/ros3djs#202 ) do!
(Since RViz doesn't respect the tag, this does not break the model)