-
Notifications
You must be signed in to change notification settings - Fork 4
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
Y up_axis #6
Comments
Could you please provide more context so we can better understand the issue?. How are you loading the geometries?, does a simple rviz visualization of the model work?, is it something affecting all geometries or just some?. Some screenshots would help. Some context from our side. In the REEM-C model, all geometries are oriented such that they can be attached to the link frames without needing any additional transformations. Also, not all link orientations have the z coordinate pointing upwards in the zero position, as shown in the below image. |
Hi Adolfo, The urdf file specify here starts with the base and its mesh without any transformation.
But it seems not to be the case in rviz (y-green pointing up). When looking into the DAE, it indicates that the mesh was generated using meshlab. Y is pointing up but the geometry of the body and the local frame are showing that Z is pointing along the vertical of the robot. Therefore the kinematic tree, and the local geometry of the link are right, (Z is up). Could you explain me what I am getting wrong ? In addition changing up_axis to Z_UP in line 8 of base.dae seems to not affect the computations done when starting the gazebo tutorial. |
For the context, I am trying to load the geometry in an OpenSceneGraph custom But again I am probably missing something obvious. Thanks in advance for your kind help. |
If what you want is to change which axis is considered as the 'up' direction when displayed in isolation, I think we could accept a pull request for that. It should not break code, as the coordinate system will remain unchanged with respect to the geometry. In other words, the Y_UP or Z_UP does not play a role when using the meshes within the robot model, . |
With respect to the collada specification, this would make sure that no transformation is introduced. |
Does #7 fix the issues you were having for all geometries?. The base of the robot is such that if z points up, the geometry will be correctly aligned with the robot's zero pose. This is not the case for all geometries. For instance, this is how the head looks with z pointing upwards: In REEM-C, the z axis aligns with the axis of rotation of the associated joint. |
Yes but then the kinematic tree should gives you the proper transformation:
Which here would map So the head is at the appropriate place with respect to the kinematic model. The problem is that up_axis is introducing a transform which is explicitly removed by rviz. I checked that the commit does not modify anything by launching the tutorial on gazebo... On my application, the only thing which changes are the textures. And maybe this is the main trouble with changing the up_axis. It defines the side of the normals. |
I can confirm that your patch does not affect the reconstruction of the robot. For extra caution: @hilario, can you think of any way in which this change could affect existing code?. Otherwise I'll go ahead and pull the trigger. |
Ping @hilario. |
Could you make a final decision on this pull request ? |
@lucamarchionni, @hilario, I no longer can accept PRs on these repos, please take appropriate action. I think it can be safely merged. |
Would it be possible to change this to Z up_axis on the meshes of REEM C ?
When loading the geometry with urdfdom on 12.04 LTS the local geometry
of the link is upside-down.
Unless there is a profound reason, I am not sure to see the point.
Thanks in advance for your answer.
The text was updated successfully, but these errors were encountered: