andreasBihlmaier / pysdf

Python library to parse SDF into class hierarchy and export URDF
http://wiki.ros.org/pysdf
115 stars 65 forks source link

pysdf error #20

Open EnesKcuk opened 2 years ago

EnesKcuk commented 2 years ago

Hi I am trying to covert frrom sdf file to urdf and getting this error

eyup@eyup-FLEXDEX304:~/catkin_ws4/src/iq_sim/models/iris_base$ rosrun pysdf sdf2urdf.py model.sdf model.urdf Traceback (most recent call last): File "/home/eyup/catkin_ws4/src/pysdf/scripts/sdf2urdf.py", line 31, in main() File "/home/eyup/catkin_ws4/src/pysdf/scripts/sdf2urdf.py", line 17, in main sdf = pysdf.SDF(file=args.sdf) TypeError: init(): incompatible constructor arguments. The following argument types are supported:

  1. pysdf.SDF(verts: numpy.ndarray[numpy.float32[m, 3], flags.c_contiguous], faces: numpy.ndarray[numpy.uint32[m, 3], flags.c_contiguous], robust: bool = True, copy: bool = True)

Invoked with: kwargs: file='model.sdf'

any idea to fix it?

li-yongyao commented 1 year ago

I also have this issue...

ATflux commented 1 year ago

In sdf2urdf.py script change #!/usr/bin/env python3 to #!/usr/bin/env python. It should work.