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

Obstacles on Rviz, incorrectly visualization.

asked 2011-05-31 23:31:51 -0500

mbj gravatar image

updated 2011-05-31 23:34:44 -0500

Hi everywhere.

I'm finishing the install of the navigation stack on my robot, but I have a problem. As I viewed in the tutorial "Using rviz in navigation stack", the obstacles and inflated obstacle will appear as the robot are approximating to them and always that the laser can "view" them. If you see my video, you can note that some obstacles on my rviz are "loaded" since the first moment, and the others will not appear although the laser are viewing it (I note that if the robot collision with this "invisible" obstacles, it see this obstacles).

Video: http://youtu.be/rBaU9yuqO6k

I searched and found some topics in forums of people that have a similar problem (altough they directly not see the obstacles), but I try to apply some changes proposed and the result is the same.

There are some of my configuration files:

costmap_common_params.yaml:

obstacle_range: 0.05

raytrace_range: 0.5

footprint:[[0.5, -0.275], [0.5, 0.275],[-0.5,0.275], [-0.5, -0.275]]

inflation_radius: 0.5

observation_sources: laser_scan_sensor laser_scan_sensor: {sensor_frame: /hokuyo_laser_link, data_type: LaserScan, topic: hok_node_topic, marking: true, clearing: true}

global_costmap:
global_frame: /map
robot_base_frame: base_link
update_frequency: 5.0 static_map: true

local_costmap:
global_frame: odom
robot_base_frame: base_link
update_frequency: 5.0
publish_frequency: 2.0 static_map: true rolling_window: true width: 6.0 height: 6.0 resolution: 0.05

Other problem that I have is to synchronize the position of the robot both in Gazebo and Rviz I have to set manually in this last. There is other method?

Any idea? Thanks in advance!

edit retag flag offensive close merge delete

Comments

The format of the YAML file you posted is a bit strange, its possible that its a copy-paste error, but could you re-post it with the proper newlines? I just want to make sure that the file you're actually using in practice contains the newlines it needs.
eitan gravatar image eitan  ( 2011-06-01 07:08:52 -0500 )edit
It's a forum copy-paste error. When I asked the question I noticed that this was different than in the local file (in the local file there aren't newlines and doesn't appears "costmap_common_params.yaml:"), but I tried to rewrite it without success.
mbj gravatar image mbj  ( 2011-06-01 20:30:32 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2011-06-02 04:52:06 -0500

eitan gravatar image

OK.. just wanted to make sure before I really dug into things. After taking a closer look, it seems like you have "static_map" set to true for your local_costmap, which means that the width, height, and resolution parameters you set are all ignored. Try setting "static_map" to false and see what happens. You may also have an issue with sensor data coming into the costmap, but I'd try this first.

As for using the information from gazebo as a localization source, the fake_localization package will be of interest since, I believe, Gazebo publishes some sort of ground truth message.

edit flag offensive delete link more

Comments

I changed the parameter "static_map" to false in my local_costmap and no obstacle/inflated_obstacle is viewed. When I launch the move_base node, I see that costmap_common_params load correctly the laser_scan, and If I "echo" the topic "/move_base/local_costmap/obstacles" I have messages with frame_id: /odom and all the values except cells[]. I think and read that this cells:[] array must not be empty, but all the solutions that I found are based in a bad configuration of the laser_scan or any tf problem, and I not see any of these two errors... Do you have another idea? Thanks!
mbj gravatar image mbj  ( 2011-06-02 21:00:35 -0500 )edit
I think that I solved part of the problem. I changed in global and local costmap_parameter files the robot_base_frame to /base_footprint and it runs, but what I would to modify to "see" the objects before and expand the laser vision? I tried modifiying the "laser_min_range" and "laser_max_range" to -2.09 and 2.09 rads to set this like in the urdf (-120º/120ª) but I not see any difference.
mbj gravatar image mbj  ( 2011-06-08 01:12:40 -0500 )edit

Question Tools

Stats

Asked: 2011-05-31 23:31:51 -0500

Seen: 1,604 times

Last updated: Jun 02 '11