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

How to add interested object into my map?

asked 2015-08-11 08:35:24 -0600

wsAndy gravatar image

updated 2015-08-11 08:36:30 -0600

Hello everyone.

I'm running ROS indigo in Ubuntu 1404, 64bit.

Now I can generate a map with the help of hector_slam . But when I want to add interested objects when the robot find in the rea world, I don't know how to make it. In fact, I learned that hector_object_tracker could add the interested objects into the map.. So I tried it . When I run roslaunch hector_object_tracker object_tracker.launch, I faced such information.

[ INFO] [1439299148.445725513]: waitForService: Service [/get_distance_to_obstacle] has not been advertised, waiting...
[ WARN] [1439299153.465895428]: project_objects is true, but GetDistanceToObstacle service is not (yet) available

I find the same problem Here . But it didn't solve it.

Besides, I faced another problem.

[ WARN] [1439299153.490758564]: Required verification service /thermal_self_filter/verify_percept is not available... waiting...
[ INFO] [1439299153.491344087]: waitForService: Service [/thermal_self_filter/verify_percept] has not been advertised, waiting...
[ INFO] [1439299154.508456749]: waitForService: Service [/thermal_self_filter/verify_percept] has not been advertised, waiting...
[ INFO] [1439299155.526992780]: waitForService: Service [/thermal_self_filter/verify_percept] has not been advertised, waiting...
[ INFO] [1439299156.544610708]: waitForService: Service [/thermal_self_filter/verify_percept] has not been advertised, waiting...

There are endless [INFO] waitForService: Service [/thermal_self_filter/verify_percept] has not been advertised, waiting...

I don't know how to solve this problem.

I also don't how to use hector_object_tracker rightly as I didn't find useful tutorials.

Thanks first!!!

Here is the launch file .

<?xml version="1.0"?>

<launch>
<node pkg="hector_object_tracker" type="object_tracker" name="object_tracker" output="screen">
  <param name="project_objects" type="bool" value="true" />
  <param name="angle_variance" type="double" value="0.121846968"/>
  <param name="publish_interval" type="double" value="1.0" />

  <rosparam>
    victim:
      pending_support: 1.0
      active_support: 10.0
      min_height: -0.5
      max_height: 0.2
      marker_color: [0.8, 0.0, 0.0]
      with_orientation: true
      #get_normal_service: hector_octomap_server/get_normal
      distance_to_obstacle_service: /hector_map_server/get_distance_to_obstacle
      min_distance_between_objects: 0.3
    qrcode:
      active_support: 1.0
      marker_color: [0.0, 0.0, 0.8]
    barrel:
      active_support: 5.0
      marker_color: [0.8, 0.8, 0.0]
    verification_services:
      - service: victim_verification/verify_victim
        type: object
        class_id: victim
        ignore: true
      - service: thermal_self_filter/verify_percept
        type: percept
        class_id: victim
        required: true
    negative_update:
      - topic: thermal/camera_info
        class_id: victim
        min_distance: 0.1
        max_distance: 1.6
        negative_support: 0.5
  </rosparam>

  <remap from="visualization_marker" to="worldmodel/visualization_marker" />
  <remap from="visualization_marker_array" to="worldmodel/visualization_marker_array" />
</node>
</launch>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-16 08:46:04 -0600

wsAndy gravatar image

I solved this problem with a lot of changes. I use stage_ros to simulate the real world. As I don't have thermal_camera, I delete the vicitims information in all the file . The service getDistanceToObstacle need to be renamed in hector_map_server and I also change the TF . I need to say, it's not easy for me to make it, but now, I make it.

edit flag offensive delete link more

Comments

could you be more specific

NAGALLA DEEPAK gravatar image NAGALLA DEEPAK  ( 2018-02-10 23:17:14 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-08-11 08:35:24 -0600

Seen: 521 times

Last updated: Aug 16 '15