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

Error: cannot launch node of type [message_to_tf/message_to_tf]: can't locate node [message_to_tf] in package [message_to_tf]

asked 2016-04-13 03:49:27 -0500

xuao gravatar image

updated 2016-04-15 02:48:00 -0500

I'm new in ros, i have downloaded hector_quadrotor package, and when i run the command roslaunch hector_quadrotor_demo outdoor_flight_gazebo.launch after opening a new terminal, everything is normal, but when i run that command again after running cd ~/catkin_ws, catkin_make, source devel/setup.bash, the error: ERROR: cannot launch node of type [message_to_tf/message_to_tf]: can't locate node [message_to_tf] in package [message_to_tf] occurred. The details like this:

aicrobo@ubuntu:~/catkin_ws$ roslaunch hector_quadrotor_demo outdoor_flight_gazebo.launch
... logging to /home/aicrobo/.ros/log/ace916f6-fc96-11e5-8da5-b888e3704f6c/roslaunch-ubuntu-11805.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:60744/

SUMMARY
========

PARAMETERS
 * /base_link_frame: /base_link
 * /controller/imu_topic: 
 * /controller/motor/type: hector_quadrotor_...
 * /controller/pose/type: hector_quadrotor_...
 * /controller/pose/xy/k_d: 0.0
 * /controller/pose/xy/k_i: 0.0
 * /controller/pose/xy/k_p: 2.0
 * /controller/pose/xy/limit_output: 5.0
 * /controller/pose/yaw/k_d: 0.0
 * /controller/pose/yaw/k_i: 0.0
 * /controller/pose/yaw/k_p: 2.0
 * /controller/pose/yaw/limit_output: 1.0
 * /controller/pose/z/k_d: 0.0
 * /controller/pose/z/k_i: 0.0
 * /controller/pose/z/k_p: 2.0
 * /controller/pose/z/limit_output: 5.0
 * /controller/state_topic: 
 * /controller/twist/angular/xy/k_d: 5.0
 * /controller/twist/angular/xy/k_i: 5.0
 * /controller/twist/angular/xy/k_p: 10.0
 * /controller/twist/angular/xy/time_constant: 0.01
 * /controller/twist/angular/z/k_d: 0.0
 * /controller/twist/angular/z/k_i: 2.5
 * /controller/twist/angular/z/k_p: 5.0
 * /controller/twist/angular/z/limit_output: 3.0
 * /controller/twist/angular/z/time_constant: 0.1
 * /controller/twist/limits/force/z: 30.0
 * /controller/twist/limits/load_factor: 1.5
 * /controller/twist/limits/torque/xy: 10.0
 * /controller/twist/limits/torque/z: 1.0
 * /controller/twist/linear/xy/k_d: 0.0
 * /controller/twist/linear/xy/k_i: 1.0
 * /controller/twist/linear/xy/k_p: 5.0
 * /controller/twist/linear/xy/limit_output: 10.0
 * /controller/twist/linear/xy/time_constant: 0.05
 * /controller/twist/linear/z/k_d: 0.0
 * /controller/twist/linear/z/k_i: 1.0
 * /controller/twist/linear/z/k_p: 5.0
 * /controller/twist/linear/z/limit_output: 10.0
 * /controller/twist/linear/z/time_constant: 0.05
 * /controller/twist/type: hector_quadrotor_...
 * /ground_truth_to_tf/frame_id: /world
 * /ground_truth_to_tf/odometry_topic: ground_truth/state
 * /ground_truth_to_tf/tf_prefix: 
 * /quadrotor_aerodynamics/C_mxy: 0.074156208
 * /quadrotor_aerodynamics/C_mz: 0.050643264
 * /quadrotor_aerodynamics/C_wxy: 0.12
 * /quadrotor_aerodynamics/C_wz: 0.1
 * /quadrotor_propulsion/CT0s: 1.53819048398e-05
 * /quadrotor_propulsion/CT1s: -0.00025224
 * /quadrotor_propulsion/CT2s: 0.0
 * /quadrotor_propulsion/J_M: 2.5730480633e-05
 * /quadrotor_propulsion/Psi: 0.00724217982751
 * /quadrotor_propulsion/R_A: 0.201084219222
 * /quadrotor_propulsion/alpha_m: 0.104863758314
 * /quadrotor_propulsion/beta_m: 0.549262344778
 * /quadrotor_propulsion/k_m: -7.01163190977e-05
 * /quadrotor_propulsion/k_t: 0.0153368647144
 * /quadrotor_propulsion/l_m: 0.275
 * /robot_description: <?xml version="1....
 * /robot_state_publisher/publish_frequency: 50.0
 * /rosdistro: indigo
 * /rosversion: 1.11.16
 * /tf_prefix: 
 * /use_sim_time: True
 * /world_frame: world

NODES
  /
    controller_spawner (controller_manager/spawner)
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    ground_truth_to_tf (message_to_tf/message_to_tf)
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    rviz (rviz/rviz)
    spawn_robot (gazebo_ros/spawn_model)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[gazebo-1]: started with pid [11826]
process[gazebo_gui-2]: started with pid [11830]
process[spawn_robot-3]: started with pid [11834 ...
(more)
edit retag flag offensive close merge delete

Comments

1

Have you installed message_to_tf package?

maysamsh gravatar image maysamsh  ( 2016-04-13 08:36:40 -0500 )edit

I have installed that package in home/aicrobo/catkin_ws/src, and catkin_ws is my workspace.

aicrobo@ubuntu:~/catkin_ws$ rospack find message_to_tf
/home/aicrobo/catkin_ws/src/message_to_tf
xuao gravatar image xuao  ( 2016-04-13 20:10:41 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2016-04-22 08:47:42 -0500

romay gravatar image

From joq comment, this solved the issue for me (using indigo, you might need to adapt to your ROS version):

sudo apt-get install ros-indigo-message-to-tf
edit flag offensive delete link more
0

answered 2016-04-14 10:52:20 -0500

joq gravatar image

Try this:

 rosrun message_to_tf message_to_tf

message_to_tf.cpp is the source file. The executable binary is named message_to_tf.

edit flag offensive delete link more

Comments

I have tried this command but the output is same with the previous

aicrobo@ubuntu:~/catkin_ws$ rosrun message_to_tf message_to_tf
[rosrun] Couldn't find executable named message_to_tf below /home/aicrobo/catkin_ws/src/message_to_tf
xuao gravatar image xuao  ( 2016-04-14 21:16:25 -0500 )edit
0

answered 2017-11-09 16:06:15 -0500

sincole gravatar image

Make sure you did

catkin_make

within your workspace, especially when you git-cloned some files into your workspace you have to catkin_make to add all the nodes into the CMake file.

edit flag offensive delete link more

Comments

I have same issue, I created a package and added .cpp file, then, I did catkin_make and sourced it properly. The executable file in /catkin_ws/devel/lib. BUT I still get this error ERROR: cannot launch node of type please help??

Abdu gravatar image Abdu  ( 2018-02-04 12:55:32 -0500 )edit

Did you get'100% built' after CMake? sometimes you might need to install some python or ROS packages in order to complete CMake

sincole gravatar image sincole  ( 2018-02-05 14:19:07 -0500 )edit

Also make sure the .cpp file within the src folder of that workspace. Folder structure is very important when doing Catkin Make

sincole gravatar image sincole  ( 2018-02-05 14:21:21 -0500 )edit
0

answered 2016-04-28 15:39:34 -0500

naqi.nick gravatar image

updated 2016-04-28 15:40:06 -0500

try using source devel/setup.sh maybe it will work

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-13 03:49:27 -0500

Seen: 3,584 times

Last updated: Apr 28 '16