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

Broken Blender component selection #793

Open
severin-lemaignan opened this issue Jul 24, 2018 · 2 comments
Open

Broken Blender component selection #793

severin-lemaignan opened this issue Jul 24, 2018 · 2 comments
Labels

Comments

@severin-lemaignan
Copy link
Contributor

severin-lemaignan commented Jul 24, 2018

Reported on the mailing list by David Battle:

As of January, I have been relying on the change Severin had made in d0e7ab5 to allow selection of a particular object as the nominal robot "parent" without specific parenting in Blender (because it nullifies all physics and dynamic constraints).

Having just pulled the latest source out of GitHub, it seems that this behaviour is no longer working?

@severin-lemaignan
Copy link
Contributor Author

Commit c356bdd introduced the breaking change.

The main change introduced in by this commit is to only import the actual required Blender object:

imported_objects = self.append_meshes(objects=[blender_object_name])
self.set_blender_object(imported_objects[0])

instead of:

imported_objects = self.append_meshes()
self.set_blender_object([o for o in imported_objects if o.name == blender_object_name][0])

It seems to break David's code. Would be useful to have more informations: how the component is called in the builder script, and what does the Blender file containing the objects look like.

@battledj
Copy link

Apologies Severin and Jeremy. I have been traveling.

I am attaching a simplified version of the WAMV model, which has all the visual detail removed and only the collision boundaries remaining. When we sort this problem out, I would like to offer the full model, including the buoyancy scripts, to anybody who wants it. I recently visited my old Department at MIT and their RobotX team is keen to use the full model with MOOS.

I did stare at Severin's changes for a while, but couldn't figure out what was broken. I should add that I haven't fixed the model yet so that it can be easily translated or rotated. Currently it falls apart without parenting, but I think we can fix that per Jeremy's idea of temporary parenting.

Note that I have currently set the target blender object with:
GroundRobot.__init__(self, 'wamv_sim/robotswamv.blend', 'robot', blender_object_name='platform_boundary')

Cheers,
David.

wamv.gz

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

No branches or pull requests

2 participants