Skip to content
Snippets Groups Projects
Commit 969a797a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix tests without ROS PACKAGE_PATH

parent bb0ce2ad
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ class AbstractRobot(ABC):
urdfFile = urdfPath
if urdfDir is None:
import os
urdfDir = os.environ["ROS_PACKAGE_PATH"].split(':')
urdfDir = os.environ.get("ROS_PACKAGE_PATH", "").split(':')
if rootJointType is None:
self.pinocchioModel = pinocchio.buildModelFromUrdf(urdfFile)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment