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

MoveIt combined with ROS HardwareInterface

asked 2022-01-27 07:27:34 -0600

Sebastian_ROS gravatar image

I tried to implement a ROS Hardware Interface and used this tutorial for that: https://www.rosroboticslearning.com/ros-control

To test the Interface I use a ROS_INFO statement to print the joint commands for the controllers. For some reason this only works if I run the demo_gazebo.launch file and not with the demo.launch file. (Both generated by MoveIt)

The error results in zero values for the commands if I use the demo.launch file, if i use the demo_gazebo.launch file this works fine. Could the controllers be the reason for the problem or is it due to another cause?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-01-27 16:36:06 -0600

osilva gravatar image

Hi @Sebastian_ROS

If you look into demo_gazebo.launch and demo_launch they are different and run different nodes. You can find them in your system, but for others the files look like this:

demo_launch

demo_gazebo_launch

If you look at the control portion of the launch file:

For demo.launch:

  <!-- Choose controller manager: fake, simple, or ros_control -->
  <arg name="moveit_controller_manager" default="fake" />
  <!-- Set execution mode for fake execution controllers -->
  <arg name="fake_execution_type" default="interpolate" />

And for demo_gazebo_launch:

  <include file="$(dirname)/demo.launch" pass_all_args="true">
    <!-- robot description is loaded by gazebo.launch, to enable Gazebo features -->
    <arg name="load_robot_description" value="false" />
    <arg name="moveit_controller_manager" value="ros_control" />
  </include>

As you can see the default moveit_controller_manager for demo.launch is fake, whereas in demo_gazebo.launch the value is ros_control.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-01-27 07:27:34 -0600

Seen: 183 times

Last updated: Jan 27 '22