Ask Your Question

How can we install Husky Simulator in melodic ditro?

asked 2018-06-01 07:05:48 -0600

Swag10 gravatar image

updated 2018-06-01 13:31:37 -0600

jayess gravatar image

While I was going through link:

In the command:

$ sudo apt-get install ros-<distro>-husky-simulator

I replaced <distro> with melodic

But I am getting following error:

E: Unable to locate package ros-melodic-husky-package
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-06-01 15:12:49 -0600

If you visit you'll see that this package is currently only released on Indigo and Kinetic (notice the blue boxes at the top of the wiki page). This is why you cannot install from apt-get.

You can certainly try to build this package from source, but you are not guaranteed that it will work.

To give some confidence that it might work, I just tried to compile husky package on ROS Melodic, and was able to compile with almost no issues (although I haven't tested it extensively). A few notes:

  • I was able to install many dependencies from apt-get.
  • The only packages I had to build from source in order to launch the husky_playpen.launch file were:
    • LMS1xx
    • husky
    • interactive_marker_twist_server
    • robot_localization
    • twist_mux
  • The only issue I had compiling was with LMS1xx as described here. Following the instructions on this ros-overlay bug report I was able to switch all logXXXX calls to CONSOLE_BRIDGE_logXXXX using a couple of sed commands.
edit flag offensive delete link more


Thank you for the clarification. Instead of melodic I am working with Kinetic now.

Swag10 gravatar image Swag10  ( 2018-06-04 16:42:53 -0600 )edit

answered 2020-09-25 17:48:49 -0600

Since the last posted answer, ros-melodic-husky-package has been added to bionic main.

If you are still encountering this error on Ubuntu 18.04, check your sources.list with

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep ros

If that returns nothing, something must have removed the ROS repo from your sources list and you'll need to add it back using the instructions from the installation page:

  1. sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  2. sudo apt-key adv --keyserver 'hkp://' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
edit flag offensive delete link more


Still could not install on ROS Melodic.

fahadrazakhan gravatar image fahadrazakhan  ( 2020-12-24 05:23:57 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-06-01 07:05:48 -0600

Seen: 3,005 times

Last updated: Sep 25 '20