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

geotiff trajectory

asked 2018-11-06 23:42:11 -0500

TintinQuarantino gravatar image

Hey guys

I've made a ground robot running hector slam on ROS Kinetic. I've got the hector saving geotiff files to be sent to a remote desktop. The mapping is working fine but the robot's trajectory is staying at the original position, strangely the path is drawing with the map fine as seen below (my robot doesn't like driving straight). I CAN see the the trajectory in Rviz.

image description

When i execute

rosservice call trajectory

I get the error message "ERROR: Unable to load type [hector_nav_msgs/GetRobotTrajectory]. Have you typed 'make' in [hector_nav_msgs]?"


    <?xml version="1.0"?>

  <arg name="trajectory_source_frame_name" default="/base_link"/>
  <arg name="trajectory_update_rate" default="4"/>
  <arg name="trajectory_publish_rate" default="0.25"/>
  <arg name="map_file_path" default="(find hector_geotiff)/maps"/>
  <arg name="map_file_base_name" default="hector_slam_map"/>

  <node pkg="hector_trajectory_server" type="hector_trajectory_server" name="hector_trajectory_server" output="screen">
    <param name="target_frame_name" type="string" value="/map" />
    <param name="source_frame_name" type="string" value="$(arg trajectory_source_frame_name)" />
    <param name="trajectory_update_rate" type="double" value="$(arg trajectory_update_rate)" />
    <param name="trajectory_publish_rate" type="double" value="$(arg trajectory_publish_rate)" />

      <node pkg="hector_geotiff" type="geotiff_node" name="hector_geotiff_node" output="screen" launch-prefix="nice -n 15">
        <remap from="map" to="/dynamic_map" />
        <param name="map_file_path" type="string" value="$(arg map_file_path)" />
        <param name="map_file_base_name" type="string" value="$(arg map_file_base_name)" />
        <param name="geotiff_save_period" type="double" value="1" />
        <param name="draw_background_checkerboard" type="bool" value="true" />
        <param name="draw_free_space_grid" type="bool" value="false" />
        <param name="plugins" type="string" value="hector_geotiff_plugins/TrajectoryMapWriter" />


Any ideas what may be wrong? Thanks for your time.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-08 03:08:07 -0500

Note the yellow arrow denotes the starting point of the robot. The current pose of the robot doesn't have a dedicated visualization per default (apart from the trajectory visualization ending somewhere). Historically, the geotiff plugin originated from RoboCup Rescue rules requirements and this was what was requested there.

The fact that the geotiff writer wrote a correct trajectory (which calls the trajectory service behind the scenes) suggests that the trajectory service works. My guess is that the workspace you have sourced on your remote computer (from which you called the service) does not contain hector_nav_msgs. You can probably fix this by simply running

sudo apt-get install ros-kinetic-hector-nav-msgs
edit flag offensive delete link more


Unfortunately this didn't work however it did install as if it wasn't there. My catkinmake process crashed at the point hector_nav_msgs was installing and I simply rebooted and started it again. I have a feeling some files didn't compile properly but I can't stop it crashing at around 85%

TintinQuarantino gravatar image TintinQuarantino  ( 2018-11-13 21:05:17 -0500 )edit

Also I am not calling the service from the remote PC. I have a python code sending the saved geotiff files to the PC, all of the ROS stuff is done on the Pi.

TintinQuarantino gravatar image TintinQuarantino  ( 2018-11-13 21:29:16 -0500 )edit

Do you mean a compile error with "crashing at around 85%"? The certainly sounds like it could cause issues.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2018-11-16 03:23:22 -0500 )edit

Question Tools



Asked: 2018-11-06 23:42:11 -0500

Seen: 503 times

Last updated: Nov 08 '18