Robotics StackExchange | Archived questions

Run hector_compressed_map_transport?

Hello everyone,

I've been trying to use the hectormap stack (http://wiki.ros.org/hectorslam?distro=indigo) for generating an occupancy grid of an environment using laser scan data.

My team and I wanted to use opencv to detect specific shapes of obstacles on the map and for that we need to transform the occupancy grid into an image which is being done by the hectorcompressedmaptransport (http://wiki.ros.org/hectorcompressedmaptransport?distro=indigo).

However, each time we try to run it with the following command:

rosrun hector_compressed_map_transport map_to_image_node

we get the following error:

[rosrun] Couldn't find executable named map_to_image_node below /opt/ros/indigo/share/hector_compressed_map_transport

The hector_slam stack was installed using the following command:

sudo apt-get install ros-indigo-hector-slam

Actually, the only node we have been able to successfully run was the hectormapping node from the hectormapping package. All other nodes from any other packages return the same error. However, when using the launch file from the tutorials, the hectorgeotiff node does run (but not with rosrun), and we have not been able to successfully modify a launch file to run hectorcompressedmaptransport.

Thank you for your time!

Asked by tony.hegyes on 2016-03-15 10:08:00 UTC

Comments

what is the output if you run "roscd hector_compressed_map_transport" and "roscd hector_geotiff"?

Asked by DavidN on 2016-03-20 04:48:14 UTC

roscd hector_compressed_map_transport changes the location to /opt/ros/indigo/share/h ector_compressed_map_transport, as expected.

Running the same command on hector_geotiff changes the location to /opt/ros/indigo/share/h ector_compressed_map_transport, again as expected.

Asked by tony.hegyes on 2016-03-20 18:15:05 UTC

It's as if the executable just doesn't exist ... I was thinking about compiling the project from source instead of installing it through apt-get, but I thought that I was just doing something wrong maybe ...

Asked by tony.hegyes on 2016-03-20 18:15:45 UTC

Unless you have some intention of modifying the source code of the package, it is better to use apt-get to install. Otherwise your workspace size will grow unnecessarily. I tried installation by apt-get for hector_slam and it seemed to work fine. Maybe you could try to remove and re install?

Asked by DavidN on 2016-03-20 20:37:50 UTC

I removed and installed it again, but no luck. However, I tried it on a friend's computer and it works perfectly fine. I assume it must be some issue arising from the fact that my ROS is installed in a CHROOT.

I will move my work on a secondary computer where I don't need the CHROOT.

Thanks!

Asked by tony.hegyes on 2016-03-24 16:41:55 UTC

Answers