Skip to content

Avoid to use YARP_ROBOT_NAME to permit users to set either icub or ergocub #29

@traversaro

Description

@traversaro

Reading the README, it seems to me that in the repo the YARP_ROBOT_NAME can be set to either icub or ergocub to select if icub or ergocub is used (see

robot_name = os.environ["YARP_ROBOT_NAME"]
xacro_file = os.path.join(get_package_share_directory(robot_name+'_moveit_config'), 'config', robot_name+'.urdf.xacro')
). However, such a usage is not compatible with the common use of the YARP_ROBOT_NAME env variable in iCub and ergoCub setups, where the YARP_ROBOT_NAME is set to a name like iCubGenova09 or ergoCubSN002, to load the corresponding configuration files (for example installed via https://github.com/robotology/robots-configuration) via the YARP's ResourceFinder infrastructure (see https://www.yarp.it/latest/yarp_resource_finder_tutorials.html).

Note that some other usages (such as

if "icub" in os.environ["YARP_ROBOT_NAME"].casefold():
yarp_robot_name = "icub"
elif "ergocub" in os.environ["YARP_ROBOT_NAME"].casefold():
yarp_robot_name = "ergocub"
return yarp_robot_name
) do not induce the expectation that YARP_ROBOT_NAME is exactly set to icub or ergocub, so they are compatible with the usual values of YARP_ROBOT_NAME set in robots setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions