ANYbotics / elevation_mapping

Robot-centric elevation mapping for rough terrain navigation
BSD 3-Clause "New" or "Revised" License
1.25k stars 436 forks source link

Waiting for tf transformation to be available. (Message is throttled, 10s.) #199

Closed zhanghua7099 closed 2 years ago

zhanghua7099 commented 2 years ago

Hi!

I found that elevation mapping needs the transformation tree as input. For now, I didn't have this input. Can you give some details?

Thank you!

Magnusgaertner commented 2 years ago

Hi @zhanghua7099,

you may want to have a look at the Simple Demo for a static setup to use elevation_mapping. In general, you are right that elevation_mapping expects a transformation tree to be available. Thus, the simplest option is to add a static transform publisher to specify a rigid, static transform

  <node pkg="tf" type="static_transform_publisher" name="world_to_robot" args="2.0 6.0 0 0 0.0 0 /map /base 100"/>

See

zhanghua7099 commented 2 years ago

Thank you very much! The code runs well.