0
$\begingroup$

Rosanswers logo

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/driver.py", line 39, in <module>
from arbotix_python.follow_controller import FollowController
File "/home/user/ros_workspace/arbotix/arbotix_python/src/arbotix_python/follow_controller.py", 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/driver.py __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:

<launch>  
    <param name="/use_sim_time" value="false" />  
      
    <!-- Load the URDF/Xacro model of our robot -->  
    <arg name="urdf_file" default="$(find xacro)/xacro.py '$(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="driver.py" output="screen">  
        <rosparam file="$(find smartcar_description)/config/smartcar_arbotix.yaml" command="load" />  
        <param name="sim" value="true"/>  
    </node>  
  
    <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" >  
    </node>  
  
    <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher">  
        <param name="publish_frequency" type="double" value="20.0" />  
    </node>  
  
     <!-- 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" />  
</launch>

Originally posted by saina110 on ROS Answers with karma: 107 on 2014-01-28

Post score: 0


Original comments

Comment by saina110 on 2014-01-28:
now, I don't quite understand the error information like this : File "/home/user/ros_workspace/arbotix/arbotix_python/src/arbotix_python/follow_controller.py", line 32, in 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

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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)


Originally posted by fergs with karma: 13902 on 2014-01-28

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by saina110 on 2014-01-29:
thank you, I installed it.

Comment by anonymous8676 on 2014-06-03:
Did you have to do some sort of rosdep install?

Comment by fergs on 2014-06-04:
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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.