Comments (8)
The box collision is supposed to generate only boxes, I don't understand where does this 'Sphere' nodes come from?
Are you using the latest version of the importer from the master branch or the one from pip?
Can you share the original URDF file and the exact command you are using to convert it?
from urdf2webots.
The box collision is supposed to generate only boxes, I don't understand where does this 'Sphere' nodes come from?
Are you using the latest version of the importer from the master branch or the one from pip?
Can you share the original URDF file and the exact command you are using to convert it?
Yes, it's a strange result.
I use a virtualenv
and use the pip install urdf2webots
to install the tool.
I use the command: python -m urdf2webots.importer --input=cheetah.urdf --box-collision --output=cheetah.proto
and the origin urdf file is :
cheetah.txt
and a stl file of it is:
back.zip
from urdf2webots.
Can you maybe retry from the up to date files from the master branch of this repo instead of pip?
We fixed several issues about bounding object and inertia since the latest pip release.
from urdf2webots.
Can you maybe retry from the up to date files from the master branch of this repo instead of pip?
We fixed several issues about bounding object and inertia since the latest pip release.
Ok, I will try and reply soon.
from urdf2webots.
Perfect, thank you.
from urdf2webots.
I try the tool from the master branch. Here are the steps:
- git clone ...
- workon
<python virtualenv>
- source devel/setup.bash
- python ~/urdf2webots/demo.py --input=cheetah.urdf --output=cheetah.proto --box-collision
here are the results:
Directory "cheetah_textures" already exists!
Parsing Mesh: <catkin_ws>src/cheetah/meshes/back.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/link.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Body.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/FS.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L3.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/FSb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/RS.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/RSb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L4.STL
Root link: world
There are 52 links, 51 joints and 2 sensors
and the error still is there:cold_sweat: , some boundingObject
s still are Sphere
s
hare are screenshots of the generated proto file:
The good news is that inertiaMatrix is being generated, though I don't know if it's generating the right results
from urdf2webots.
I try the tool from the master branch. Here are the steps:
- git clone ...
- workon
<python virtualenv>
- source devel/setup.bash
- python ~/urdf2webots/demo.py --input=cheetah.urdf --output=cheetah.proto --box-collision
here are the results:
Directory "cheetah_textures" already exists! Parsing Mesh: <catkin_ws>src/cheetah/meshes/back.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/link.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl2.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl2.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl2.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl1.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl1.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl1.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Body.STL Warning: This mesh has a lot of triangles! Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument. Parsing Mesh: <catkin_ws>src/cheetah/meshes/FS.STL Warning: This mesh has a lot of triangles! Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument. Parsing Mesh: <catkin_ws>src/cheetah/meshes/L1.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/L2.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/L3.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hb.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vb.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/FSb.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/RS.STL Warning: This mesh has a lot of triangles! Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument. Parsing Mesh: <catkin_ws>src/cheetah/meshes/RSb.STL Parsing Mesh: <catkin_ws>src/cheetah/meshes/L4.STL Root link: world There are 52 links, 51 joints and 2 sensorsand the error still is there😰 , some
boundingObject
s still areSphere
s
hare are screenshots of the generated proto file:
The good news is that inertiaMatrix is being generated, though I don't know if it's generating the right results
I'm so sorry that I checked my urdf file and I find that I use different geometries in the <collision>
and <visual>
label. The master branch of the tool is working correctly.
from urdf2webots.
I'm so sorry that I checked my urdf file and I find that I use different geometries in the and label. The master branch of the tool is working correctly.
That makes way more sense, thank you for the feedback!
from urdf2webots.
Related Issues (20)
- Webots does neither use color nor textures from wavefront (.obj) files HOT 13
- NameError: global name 'PackageNotFoundError' is not defined HOT 10
- Base link is missing physics element that breaks Gyro node use HOT 8
- Question: when will the mesh scaling fix be included in the release? HOT 1
- Empty textures folder problem with URDF to PROTO conversion HOT 2
- Converter prunes URDF branches of sensors HOT 3
- Question: Update rate of sensor HOT 4
- Geometry.reference database does not consider scaling option HOT 2
- Mesh of base is not rendered HOT 6
- SliderJoint initial position is not reflected in Webots simulation
- Expected field name or '}', found ']' when adding proto to environment
- How do I set the contactMaterial? HOT 1
- How to generate a passive joint? HOT 2
- URDFSpawner <device reference=”link”> does not work when the link is defined in the urdf and not in an existing PROTO HOT 4
- URDFSpawner does not set the robot Physics & BoundingObject when the base link does not have a collision tag
- Missing parsing of ROS mesh filename 'file://' prefix HOT 1
- URDFSpawner does not preserve link names, messing the TF tree when using the ros2_webots_driver with robot_state_publisher HOT 1
- Colors not being applied when pre-defined in URDF
- Has the development of this sensor part been completed HOT 1
- After the conversion of the mobile robotic arm, the part of the robotic arm is lost. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urdf2webots.