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

urdf model is not able to be loaded by gzweb #167

Open
osrf-migration opened this issue Sep 19, 2019 · 4 comments
Open

urdf model is not able to be loaded by gzweb #167

osrf-migration opened this issue Sep 19, 2019 · 4 comments
Labels
enhancement New feature or request major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Xu Tao (Bitbucket: Xu Tao).

The original report had attachments: robot.png


I have a spawned robot model in roslaunch file, the robot model is in “.urdf.xcaro“ files. First, I converted the urdf.xacro file to urdf file and changed the “package://” to “model:// “ in the urdf file. Then I copied my model folder in “gzweb/http/client/assets” folder, a “model.config” file is also added with “<sdf version=1.4">rb1_base_std.urdf“. Testing it, I see that in gzweb my robot loses the shape, it should look like a turtelbot, but now it is as shown in the picture, it seems that the mesh files are not linked with the model. Furthermore, checking the output of “npm run deploy --- -m local“ , I have seen that gzweb doesn't process the “.urdf“ file (I don't see the name of the file among the ones listed in the output).

@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


I wouldn't expect the robot to look like that if it were a problem with the URDF though. It seems to be more of a problem reading the underlying mesh file (collada / obj / stl). You could try loading a simple SDF with just the mesh you have to see if the problem persists. Also, have you checked that it is loaded properly with gzclient (i.e. gazebo)?

@osrf-migration
Copy link
Author

Original comment by Xu Tao (Bitbucket: Xu Tao).


Hi Louise, Thanks for your reply. I also run the gazebo, and the robot model is fine in gzclient. And I tried to convert the urdf file to sdf file, I saw in the output of “npm run deploy --- -m local“, it processes the .sdf file, but the model still looks like in the same way.

@newcanopies
Copy link

Hi @chapulina

can URDF descriptions be loaded in GzWeb as of now?

if not,
would changing the joint_states of a URDF in Gazebo, propagate to the SDF equivalent loaded in GzWeb?

@chapulina
Copy link
Contributor

can URDF descriptions be loaded in GzWeb as of now?

See #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request major
Projects
None yet
Development

No branches or pull requests

3 participants