Hey -TRI -- yes, later we will probably add something like this to something on the added $PYTHONPATH:
python
def findUnderactuatedResource(filename):
return os.path.join(os.path.dirname(__file__), filename)
And then semantics could be:
python
from pydrake.all import *
from planar_rigid_body_visualizer import PlanarRigidBodyVisualizer
# Load the double pendulum from Universal Robot Description Format
tree = RigidBodyTree(findUnderactuatedResource("double_pendulum.urdf"), FloatingBaseType.kFixed)
But we decided to just have all code run in underactuated/src
for now. Thanks!