You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue while working on Windows using a Conda environment with only python and urchin installed. I wrote a Python script to generate a URDF file for a simple robot:
fromurchinimportURDF, Link, Visual, Collision, Inertial, Geometry, Mesh, Material# Define the mesh file pathmesh_file='package://my_robot_description/meshes/base_link.dae'# Create the materialmaterial=Material(name='gray', color=[0.5, 0.5, 0.5, 1.0])
# Create the geometry for visual and collisiongeometry=Geometry(mesh=Mesh(filename=mesh_file, scale=[1, 1, 1], combine=False, lazy_filename=True))
# Create the visual elementvisual=Visual(geometry=geometry, material=material)
# Define the inertial propertiesinertial=Inertial(
mass=1.0,
inertia=[[0.1, 0.0, 0.0],
[0.0, 0.1, 0.0],
[0.0, 0.0, 0.1]]
)
# Create the linklink=Link(
name='base_link',
visuals=[visual],
collisions=[],
inertial=inertial
)
# Create the URDFrobot=URDF(
name='simple_robot',
links=[link]
)
# Save the URDF to a filerobot.save("simple_robot.urdf")
However, when I run the script, it throws the following error:
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'package:'
Notably, the same script runs without any issues on Linux.
The text was updated successfully, but these errors were encountered:
I encountered an issue while working on Windows using a Conda environment with only
python
andurchin
installed. I wrote a Python script to generate a URDF file for a simple robot:However, when I run the script, it throws the following error:
Notably, the same script runs without any issues on Linux.
The text was updated successfully, but these errors were encountered: