[WARN] [1549645986.850056, 54.996000]: Controller Spawner couldn't find the expected controller_manager ROS interface.

asked 2019-02-08 11:40:26 -0500

chirag_agrawal gravatar image

updated 2019-02-08 19:02:08 -0500

jayess gravatar image

Hello! I am getting this error

[WARN] [1549645986.850056, 54.996000]: Controller Spawner couldn't find the expected controller_manager ROS interface

while launching a urdf in gazebo. I am new to ROS and have looked for a solution but couldn't find it. A similar question is asked here. I have done everything suggested in that link and the libjoint_state_controller.so file is present at opt/ros/kinetic/lib. I have added the gazebo plugin in my .xacro file.

    <plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">

This is the .launch file.

<?xml version="1.0" encoding="UTF-8"?>
 <group ns="/mushak"> 
   <param name="robot_description" command="$(find xacro)/xacro --inorder '$(find mushak_pkg)/urdf/mushak_model.xacro'" />
    <arg name="x" default="0"/>
    <arg name="y" default="0"/>
    <arg name="z" default="0.2412"/>

    <!-- Spawn the robot model -->
    <node name="mybot_spawn" pkg="gazebo_ros" type="spawn_model" output="screen"
          args="-urdf -param robot_description -model mushak -x $(arg x) -y $(arg y) -z $(arg z)" />

    <!-- Load controllers -->
    <rosparam command="load" file="$(find mushak_pkg)/config/config.yaml" />

    <!-- Controllers -->

    <node name="controller_spawner" pkg="controller_manager" type="spawner"
        respawn="false" output="screen" ns="/mushak"
        --timeout 50

    <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
        respawn="false" output="screen">
        <remap from="/joint_states" to="/mushak/joint_states" />



The model is opening in rviz without any error. This is the output when I run

rospack find joint_state_controller 


Can someone help me please?


edit retag flag offensive close merge delete