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

Cannot locate node of type [ekf_localization_node] in package [robot_localization]

asked 2020-07-03 04:44:00 -0600

HieuPham gravatar image

Hello, I'm new in ROS. When I tried to run robot_localization package by this command: roslaunch robot_localization ekf_template.launch I have met this issue below:

ERROR: cannot launch node of type [robot_localization/ekf_localization_node]: Cannot locate node of type [ekf_localization_node] in package [robot_localization]. Make sure file exists in package path and permission is set to executable (chmod +x)

I had run these commands before that:

source devel/setup.bash

and

source /opt/ros/melodic/setup.bash

So can I fix it? Many thanks.

[UPDATE] When I used the command:

rosrun robot_localization ekf_localization_node

I got:

[rosrun] Couldn't find executable named ekf_localization_node below /home/swarm-robotics/catkin_ws/src/robot_localization

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-04 03:18:25 -0600

parzival gravatar image

As per info in your question, you first ran

source devel/setup.bash

to source your workspace and then:

source /opt/ros/melodic/setup.bash

Which is the cause it's not working. First run

source /opt/ros/melodic/setup.bash

followed by sourcing your workspace and it should work if everything else is fine. Also, make sure you ran catkin_make in the workspace you have the package in.

edit flag offensive delete link more

Comments

Many thanks, In my case, if I ran 2 commands follow your guide, it not working but it's ok when I run only source devel/setup.bash When I ran catkin_make --pkg robot_localization again, it's working correctly. I think when I used catkin_make command previously, I make a few mistakes but I skipped it.

HieuPham gravatar image HieuPham  ( 2020-07-04 03:54:34 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2020-07-03 03:45:04 -0600

Seen: 1,479 times

Last updated: Jul 04 '20