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

[SOLVED] How can i install robot_localization?

asked 2017-09-20 04:37:29 -0500

Jair gravatar image

updated 2017-09-21 12:37:08 -0500


I tried:

sudo apt-get install ros-kinetic-robot_localization

it installed the package but then when i enter:

roslaunch robot_localization ekf_template.launch

I get this:

error loading <rosparam> tag: 
  file does not exist [/opt/ros/kinetic/share/robot_localization/params/ekf_template.yaml]

so i went to /opt/ros/kinetic/share/robot_localization/ and saw that indeed a bunch of files and folders were missing (im comparing to the git repository -> )

i cant download the repository directly into that directory. and theres no build guide for this package. maybe someone here knows what to do? thank you


Ok so i found a workaround. instead of using $ sudo apt-get install ros-kinetic-robot_localization I went into my catkin_ws src folder and opened a terminal. then i entered:

git clone -b kinetic-devel


cd ~/catkin_ws 

now its installed correctlly with all the files and folders :)

edit retag flag offensive close merge delete


You should write up your solution as an answer

jayess gravatar image jayess  ( 2017-09-21 12:14:09 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2017-09-21 11:30:21 -0500

This looks like an oversight in the upstream package. I've filed the following PR:

edit flag offensive delete link more


Hi i'm new to ROS (and Linux also). may i ask, so what happened here? it wasnt wrong to use "sudo apt-get install" ? using that command should have worked right off the bat?

Jair gravatar image Jair  ( 2017-09-21 11:53:29 -0500 )edit

You did everything right. It's just the particular parameter file that that launch file depended on wasn't being installed by the binary version of the package. This is a bug for the package maintainer to fix, but you successfully worked around it by building from source and using the devel space.

mikepurvis gravatar image mikepurvis  ( 2017-09-21 12:04:13 -0500 )edit

Thank you very much mikepurvis. I think i'm finally starting to get how ROS works. man the beginning is kinda tough, especially if youre also totally new to linux

very nice community here thanks for the awesome explanation :)

Jair gravatar image Jair  ( 2017-09-21 12:15:21 -0500 )edit

answered 2022-07-06 09:38:10 -0500

Try this sudo apt-get install ros-kinetic-robot-localization insted of this 'sudo apt-get install ros-kinetic-robot_localization'

edit flag offensive delete link more

answered 2022-01-31 07:20:58 -0500

hesham gravatar image

It is

sudo apt-get install ros-melodic-robot_localization

edit flag offensive delete link more



It is a hyphen not an underscore between robot and localization:

sudo apt-get install ros-<distro>-robot-localization

omers gravatar image omers  ( 2022-07-05 09:15:36 -0500 )edit

Question Tools

1 follower


Asked: 2017-09-20 04:37:29 -0500

Seen: 7,986 times

Last updated: Jan 31 '22