waitForServer issue
Hi,
System: Virtualbox VM Linux: Ubuntu 16.04 ROS: Kinetic
I am working on manipulator jogging using the jog_control package. I've posted this on the github issues page already but I thought I'd try here as well.
I am trying to set this package up to use the Kuka KR16 arm but am having some problems with the controllers which is giving me the following warning:
Waiting for arm_controller/follow_joint_trajectory server...
as it is waiting on the TrajClient
's waitForServer
method.
I have been trying to replicate the contents of the launch files in the example given in the readme for the UR5 arm but am still coming up short. I am not sure how the follow_joint_trajectory
server is being created in the UR5 packages and I have not been able to find a tutorial or guide that explains the follow_joint_trajectory
controller.
I don't want to make the post too long so I will only include my launch files for now and if need be, I can include other info later as required.
This first launch file, kr16.launch
, launches Gazebo, Rviz, MoveIt! and loads the arm and controllers.
<?xml version="1.0"?>
<launch>
<arg name="limited" default="false" doc="If true, limits joint range [-PI, PI] on all joints." />
<arg name="paused" default="false" doc="Starts gazebo in paused mode" />
<arg name="gui" default="false" doc="Starts gazebo gui" />
<arg name="sim" default="false" doc="If true, use the simulated joint controllers"/>
<arg name="use_moveit" default="true"/>
<arg name="use_rviz" default="true"/>
<!-- startup simulated world -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" default="worlds/empty.world"/>
<arg name="paused" value="$(arg paused)"/>
<arg name="gui" value="$(arg gui)"/>
</include>
<!-- send robot urdf to param server -->
<param name="robot_description" command="$(find xacro)/xacro --inorder '$(find kuka_kr16_support)/urdf/kr16_2.xacro'" />
<!-- push robot_description to factory and spawn robot in gazebo -->
<node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model" args="-urdf -param robot_description -model robot -z 0.0" respawn="false" output="screen" />
<!-- spawn the joint_state_controller and joint_trajectory_controller-->
<rosparam file="$(find kr16_moveit_config)/config/ros_controllers.yaml" command="load"/>
<node name="arm_controller_spawner" pkg="controller_manager" type="spawner" ns="kuka_kr16_2" args="joint_state_controller arm_controller" respawn="false" output="screen"/>
<!-- Remap joint_states -->
<remap from="/joint_states" to="/kuka_kr16_2/joint_states"/>
<!-- Robot state publisher -->
<node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher">
<param name="publish_frequency" type="double" value="50.0" />
<param name="tf_prefix" type="string" value="" />
</node>
<!-- Launch rviz -->
<node if="$(arg use_rviz)"
name="rviz" pkg="rviz" type="rviz"
args="-d $(find jog_launch)/launch/jog.rviz"/>
<!-- Remap follow_joint_trajectory -->
<remap if="$(arg sim)" from="/follow_joint_trajectory" to="/kuka_kr16_2/arm_controller/follow_joint_trajectory"/>
<!-- Launch MoveIt! -->
<include if="$(arg use_moveit)"
file="$(find kr16_moveit_config)/launch/move_group.launch"/>
</launch>
This file gives the following notable fatal error when launched:
[FATAL] [1565103003.906290212]: Parameter '~moveit_controller_manager' not ...
please do not cross-post questions like this.
Give the developers/maintainers of the package a chance to respond.