gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.18k stars 479 forks source link

Unable to load animations #2582

Closed osrf-migration closed 5 years ago

osrf-migration commented 5 years ago

Original report (archived issue) by Roselle Carmen (Bitbucket: iamironcat).

The original report had attachments: 3dsmax.DAE, blender.dae


Based on this bug report.:

[https://osrf-migration.github.io/gazebo-gh-pages/#!/osrf/gazebo/issues/2516/animated-model-distorted (#2516)](https://osrf-migration.github.io/gazebo-gh-pages/#!/osrf/gazebo/issues/2516/animated-model-distorted (#2516))

I'm able to spawn the walk.dae model using the same sdf setup from this tutorial

Following the same format, I created a simple mesh with minimum animation using various 3d softwares. The following is the result of the error message received upon loading it into Gazebo.

1) Exported from 3ds max

[Wrn] [ColladaLoader.cc:241] <instance_controller> without a <skeleton> cannot be parsed
[Wrn] [Actor.cc:170] Collada file [test.DAE] does not contain skeletal animation.

2) Exported from the beta version of blender. Take note that there was a previously reported bug that is fixed in the new version.

[Err] [Connection.cc:546] Connection[0] Closed during Read
[Err] [ConnectionManager.cc:141] Unable to read from master
[Err] [gazebo_shared.cc:83] Unable to initialize transport.
[Err] [gazebo_client.cc:62] Unable to setup Gazebo

Attached are the files used for testing. They have been renamed to the appropriate software.

osrf-migration commented 5 years ago

Original comment by Roselle Carmen (Bitbucket: iamironcat).


Update.

I tested the walk.dae model with the moonwalk.dae animation and it's working.

I used a .bvh animation from the CMU database (example) and I got this error message

[Err] [Actor.cc:461] Failed to load animation [animation]
osrf-migration commented 5 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


this fixes the collada loader so models from mixamo.com can be loaded correctly. It should also fix issue #2582.

List of changes:

→ \<\<cset c88183d0478723cfb72f0ed0fc64fa9d2c386d1b>>