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

No module named control_msgs.msg

asked 2014-01-28 02:39:37 -0500

saina110 gravatar image

updated 2014-04-20 14:09:34 -0500

ngrennan gravatar image

hello professors, when I try to use roslaunch command to run the robot, I found some problems that I can't solve it. The error shows that as followed :

Traceback (most recent call last):
File "/home/user/ros_workspace/arbotix/arbotix_python/nodes/", line 39, in <module>
from arbotix_python.follow_controller import FollowController
File "/home/user/ros_workspace/arbotix/arbotix_python/src/arbotix_python/", line 32, in <module>
from control_msgs.msg import FollowJointTrajectoryAction
ImportError: No module named control_msgs.msg
[arbotix-1] process has died [pid 12272, exit code 1, cmd /home/user/ros_workspace/arbotix/arbotix_python/nodes/ __name:=arbotix __log:=/home/user/.ros/log/dc7aa468-8815-11e3-98ad-ac72896c0c64/arbotix-1.log].
log file: /home/user/.ros/log/dc7aa468-8815-11e3-98ad-ac72896c0c64/arbotix-1*.log

I try to find control_msgs.msg on the internet, but I can't find it, if you have some information about this, please help me. Thanks again for your time.

And my launch file is as followed:

    <param name="/use_sim_time" value="false" />  

    <!-- Load the URDF/Xacro model of our robot -->  
    <arg name="urdf_file" default="$(find xacro)/ '$(find smartcar_description)/urdf/smartcar.urdf.xacro'" />  
    <arg name="gui" default="false" />  

    <param name="robot_description" command="$(arg urdf_file)" />  
    <param name="use_gui" value="$(arg gui)"/>  

    <node name="arbotix" pkg="arbotix_python" type="" output="screen">  
        <rosparam file="$(find smartcar_description)/config/smartcar_arbotix.yaml" command="load" />  
        <param name="sim" value="true"/>  

    <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" >  

    <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher">  
        <param name="publish_frequency" type="double" value="20.0" />  

     <!-- We need a static transforms for the wheels -->  
    <node pkg="tf" type="static_transform_publisher" name="odom_left_wheel_broadcaster" args="0 0 0 0 0 0 /base_link /left_front_link 100" />  
    <node pkg="tf" type="static_transform_publisher" name="odom_right_wheel_broadcaster" args="0 0 0 0 0 0 /base_link /right_front_link 100" />  

    <node name="rviz" pkg="rviz" type="rviz" args="-d $(find smartcar_description)/urdf.vcg" />  
edit retag flag offensive close merge delete


now, I don't quite understand the error information like this : File "/home/user/ros_workspace/arbotix/arbotix_python/src/arbotix_python/", line 32, in <module> from control_msgs.msg import FollowJointTrajectoryAction ImportError: No module named control_msgs.msg how can I find the control_msgs.msg? I don't find it on the website....that's my question..thanks again

saina110 gravatar image saina110  ( 2014-01-28 04:00:34 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-28 07:03:06 -0500

fergs gravatar image

updated 2014-01-28 07:03:24 -0500

You most likely need to install the control_msgs package, on ubuntu, you can do this with:

 sudo apt-get install ros-hydro-control-msgs

(If you are on groovy rather than hydro, use ros-groovy-control-msgs)

edit flag offensive delete link more


thank you, I installed it.

saina110 gravatar image saina110  ( 2014-01-29 07:42:47 -0500 )edit

Did you have to do some sort of rosdep install?

anonymous userAnonymous ( 2014-06-03 20:43:29 -0500 )edit

rosdep should not be involved, but if this is your first time setting up ros you do have to add the apt sources and get the key. If you have a specific error, please open a new question.

fergs gravatar image fergs  ( 2014-06-04 01:12:44 -0500 )edit

Question Tools

1 follower


Asked: 2014-01-28 02:39:37 -0500

Seen: 2,074 times

Last updated: Jan 28 '14