-
Couldn't load subscription status.
- Fork 539
Description
Describe the bug
Adding new URDF models (that refer to stl files) needs a relative path to the XACRO path in rtbdata.
ValueError: file xacro/stl/braccio_base.stl not found locally or in rtbdata
Any help on how to do this properly will be highly appreciated. Here's a snapshot of the code we have written:
class Braccio(rtb.ERobot):
def __init__(self):
links, name, urdf_string, urdf_filepath = self.URDF_read(
rtb.rtb_path_to_datafile("../urdf/braccio.urdf.xacro", local=True)
)
super().__init__(
links,
name=name,
manufacturer="Arduino",
gripper_links=links[12],
urdf_string=urdf_string,
urdf_filepath=urdf_filepath,
)We would like to keep the URDF model information local to our project than to move it to our installation folders. The code that parses xacro files seems to look for geometry files relative to the XACRO directory.
Version information
Did you install it from PyPI or GitHub?
Latest Github version (pulled) Commit hash: 51aa8bb
Environment (please complete the following information):
- Ubuntu 18.04.
- Python 3.6.9.