ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

MoveGroupInterface /robot_description not found

asked 2022-01-06 12:26:54 -0600

Splinter1984 gravatar image

Environment

  • ROS Distro: Foxy
  • OS Version: e.g. Ubuntu 20.04
  • Debian packages install

Description

I am trying to use MoveGroupInterface as part of plansys2 and I am getting error

[bt_action_node-2] [INFO] [1641492464.774760696] [moveit_rdf_loader.rdf_loader]: Robot model parameter not found! Did you remap '/robot_description'?
[bt_action_node-2] [FATAL] [1641492464.774817909] [move_group_interface]: Unable to construct robot model. Please make sure all needed information is on the parameter server.

i am just trying to initialize MoveGroupInterface in main tick start method

    rclcpp::NodeOptions node_options;
    node_options.automatically_declare_parameters_from_overrides(true);
    auto move_group_node = rclcpp::Node::make_shared("move_group_interface_tutorial", node_options);

    //Setup MoveIt interface for planning
    moveit::planning_interface::MoveGroupInterface::Options move_group_options("robot_group", "/robot_description");
    moveit::planning_interface::MoveGroupInterface move_group_interface(move_group_node, move_group_options);

and run the node together with plansys2

    move_1 = Node(
    package='plansys2_bt_actions',
    executable='bt_action_node',
    name='move',
    namespace=namespace,
    output='screen',
    parameters=[
      pkg_dir + '/config/params.yaml',
      {
        'action_name': 'move',
        ### [Groot](https://github.com/BehaviorTree/Groot) behavior_tree_visual tool
        ### [](https://intelligentroboticslab.gsyc.urjc.es/ros2_planning_system.github.io/design/index.html)
        # need to provide visual information about working behavior tree
        # 'publisher_port': 1668,
        # 'server_port': 1669,
        'bt_xml_file': pkg_dir + '/behavior_trees_xml/move.xml'
      }
    ])
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-01-07 02:38:01 -0600

sniegs gravatar image

Perhaps in move_group_options try changing /robot_description to robot_description. It appears that you use some namespace parameters during the launch and using a / in front of robot_description sets the MoveGroupInterface to search for it in the global namespace, which might mean - outside of the namespace you use. For more info on namespaces you can check out Names. To see where everything is launched, you can use rqt_graph! Let me know if this has been useful!

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-01-06 12:26:54 -0600

Seen: 745 times

Last updated: Jan 07 '22