Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

remove divide by 2 when writing boxes to collada format #133

Merged
merged 1 commit into from
Feb 1, 2017

Conversation

jacquelinekay
Copy link
Contributor

Potential fix for #132

@skohlbr, do you think you could build robot_model from source and see if this fixes your problem?

@scpeters
Copy link
Contributor

I think this makes sense because both the box objects in both urdfdom and geometric_shapes store the box dimensions as the full side lengths (as opposed to bullet, for example, which stores the half side lengths).

@scpeters
Copy link
Contributor

+1 pending confirmation by testing

@jacquelinekay
Copy link
Contributor Author

While thinking of an automated test for this PR, I realized that the test for this package was commented out by the previous maintainer and makes nonexistent API calls:

https://github.com/ros/robot_model/blob/kinetic-devel/collada_urdf/test/test_collada_urdf.cpp#L37

So, I'm going to look into better test coverage for this package. If that takes too long I'll test it manually, merge this into Indigo/Jade/Kinetic, and release.

@jacquelinekay
Copy link
Contributor Author

I tested this manually because restoring the tests for collada_urdf is going to take a while, with a simple box and sphere example. (https://gist.github.com/jacquelinekay/8f667d7d6f603c21534afab0bc1c8626)

The scaling looks better in meshlab with this PR, but the sphere disappears.

I have no idea why that would be.

@jacquelinekay
Copy link
Contributor Author

jacquelinekay commented May 16, 2016

update: The disappearing sphere is only when robot_model is installed from source, not debs. And the sphere problem exists on indigo-devel.

@clalancette
Copy link
Contributor

So, I ended up testing this out on both Indigo and Kinetic, and after Jackie's patch, things look much better in both. Visualizing Jackie's test URDF in RViz now looks the same as visualizing the converted DAE file in meshlab. So given that, and Steven's OK of it, I'm going to merge this to Indigo and Kinetic.

@clalancette clalancette closed this Feb 1, 2017
@clalancette clalancette reopened this Feb 1, 2017
@clalancette clalancette merged commit fd83479 into indigo-devel Feb 1, 2017
@clalancette clalancette deleted the scale_boxes branch February 1, 2017 21:43
@jacquelinekay
Copy link
Contributor Author

Thanks ^_^

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

Successfully merging this pull request may close these issues.

None yet

4 participants