File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ def show(
141
141
module = import_module (f"robot_descriptions.{ name } " )
142
142
except ModuleNotFoundError :
143
143
module = import_module (f"robot_descriptions.{ name } _description" )
144
+ if not hasattr (module , "URDF_PATH" ):
145
+ raise ValueError (
146
+ "show command only applies to URDF, check out the "
147
+ "``show_in_mujoco.py`` example for MJCF descriptions"
148
+ )
144
149
145
150
if collision :
146
151
robot = yourdfpy .URDF .load (
@@ -175,6 +180,11 @@ def animate(
175
180
module = import_module (f"robot_descriptions.{ name } " )
176
181
except ModuleNotFoundError :
177
182
module = import_module (f"robot_descriptions.{ name } _description" )
183
+ if not hasattr (module , "URDF_PATH" ):
184
+ raise ValueError (
185
+ "show command only applies to URDF, check out the "
186
+ "``show_in_mujoco.py`` example for MJCF descriptions"
187
+ )
178
188
179
189
if collision :
180
190
robot = yourdfpy .URDF .load (
You can’t perform that action at this time.
0 commit comments