Re: [ros-users] Costmap_2d_tutorials without stageros?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
> >     > >   > >   -->%0A>%20>%20</launch>%0A>%20>%0A>%20>%20If%20I%20include%20the%20stageros%20node%20everything%20works%20as%20expected%20(I%20guess).%0A>%20>%20If%20I%20don't,%20the%20laserScanCallback%20in%20costmap_2d_ros.cpp%20is%20not%20being%0A>%20>%20called.%0A>%20>%0A>%20>%20Here%20is%20my%20costmap_params.yaml%20file:%0A>%20>%0A>%20>%20global_frame:%20/odom%0A>%20>%20robot_base_frame:%20Base_link%0A>%20>%20update_frequency:%205.0%0A>%20>%20publish_frequency:%202.0%0A>%20>%20transform_tolerance:%200.3%0A>%20>%20obstacle_range:%2012.5%0A>%20>%20max_obstacle_height:%201.0%0A>%20>%20raytrace_range:%2013.5%0A>%20>%20inscribed_radius:%200.15%0A>%20>%20circumscribed_radius:%200.29%0A>%20>%20inflation_radius:%200.4%0A>%20>%20observation_sources:%20laser%0A>%20>%20laser:%0A>%20>%20%C2%A0data_type:%20LaserScan%0A>%20>%20%C2%A0expected_update_rate:%200.2%0A>%20>%20%C2%A0observation_persistence:%205.0%0A>%20>%20%C2%A0marking:%20true%0A>%20>%20%C2%A0clearing:%20true%0A>%20>%20%C2%A0max_obstacle_height:%200.9%0A>%20>%20%C2%A0min_obstacle_height:%200.08%0A>%20>%0A>%20>%20static_map:%20false%0A>%20>%20rolling_window:%20true%0A>%20>%20width:%2010.0%0A>%20>%20height:%2010.0%0A>%20>%20resolution:%200.025%0A>%20>%20map_type:%20voxel%0A>%20>%20origin_x:%200.0%0A>%20>%20origin_y:%200.0%0A>%20>%20origin_z:%200.0%0A>%20>%20z_resolution:%200.2%0A>%20>%20z_voxels:%2010%0A>%20>%20unknown_threshold:%206%0A>%20>%20mark_threshold:%200%0A>%20>%20cost_scaling_factor:%2010.0%0A>%20>%20lethal_cost_threshold:%20100%0A>%20>%0A>%20>%0A>%20>%20Thanks%20for%20your%20help,%0A>%20>%20Dan%0A>%20>%20_______________________________________________%0A>%20>%20ros-users%20mailing%20list%0A>%20>%20ros-users@code.ros.org%0A>%20>%20https://code.ros.org/mailman/listinfo/ros-users%0A>%20>%0A>%20%0A>%20">Reply to this message
Author: Brian Gerkey
Date:  
To: ros-users
Subject: Re: [ros-users] Costmap_2d_tutorials without stageros?
hi Daniel,

costmap_2d can definitely be used without stageros. But it needs a
source of laser data and transforms. When you comment out stageros
from your launch file, you're no longer feeding any data into the
costmap. That's why callbacks aren't being invoked. Laser and
transform data could come from a simulation (e.g., stageros), a
physical robot, or playback of logged data from a bag file
(http://www.ros.org/wiki/Bags).

    brian.


On Mon, Apr 19, 2010 at 6:28 AM, Daniel Maier
<> wrote:
> Hi!
>
> I think about using costmap_2d in one of my projects so I played around
> with the costmap_2d_tutorials.
> Is it possible to run the costmap without stageros?
> Here is a launch file I use for bringing up a costmap:
>
> <launch>
>   <param name="/use_sim_time" value="true"/>
>   <node pkg="costmap_2d_tutorials" type="costmap_test" respawn="false"
> name="costmap_test" output="screen">
>     <rosparam file="$(find nav)/costmap_params.yaml" command="load"
> ns="costmap" />
>   </node>
>   <!--
>   <node pkg="stage" type="stageros" name="stageros" args="$(find
> 2dnav_stage)/worlds/willow-pr2-2.5cm.world" respawn="false" >
>     <param name="base_watchdog_timeout" value="0.2"/>
>   </node>
>   -->
> </launch>
>
> If I include the stageros node everything works as expected (I guess).
> If I don't, the laserScanCallback in costmap_2d_ros.cpp is not being
> called.
>
> Here is my costmap_params.yaml file:
>
> global_frame: /odom
> robot_base_frame: Base_link
> update_frequency: 5.0
> publish_frequency: 2.0
> transform_tolerance: 0.3
> obstacle_range: 12.5
> max_obstacle_height: 1.0
> raytrace_range: 13.5
> inscribed_radius: 0.15
> circumscribed_radius: 0.29
> inflation_radius: 0.4
> observation_sources: laser
> laser:
>  data_type: LaserScan
>  expected_update_rate: 0.2
>  observation_persistence: 5.0
>  marking: true
>  clearing: true
>  max_obstacle_height: 0.9
>  min_obstacle_height: 0.08
>
> static_map: false
> rolling_window: true
> width: 10.0
> height: 10.0
> resolution: 0.025
> map_type: voxel
> origin_x: 0.0
> origin_y: 0.0
> origin_z: 0.0
> z_resolution: 0.2
> z_voxels: 10
> unknown_threshold: 6
> mark_threshold: 0
> cost_scaling_factor: 10.0
> lethal_cost_threshold: 100
>
>
> Thanks for your help,
> Dan
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>