Gazebo | Ignition | Community
Ask Your Question

Visualize a geofence around a moving drone

asked 2019-06-19 09:51:19 -0600

hommsy gravatar image

Hello gazeebo-ers

I have been working with gazebo for a bit now and having difficulties.

I have a world and model of my drone and works well with ROS, mavlink etc.

I created a geofence which has its coordinates updated at 2Hz, but have no idea how to visualize the geofence in gazebo. i,e as the drone is moving the geofence surrounding it should also move.

Can anyone describe/enlighten how I would go about attempting this.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-20 07:19:01 -0600

kumpakri gravatar image

Perhaps you can create a static, transparent model (sphere?) without the collision geometry (just visuals and inertials) and set position for it on every coordinate update.

You would probably use a gazebo-ros model plugin and you would use method like SetWorldPose() (here for Gazebo7, you didn't specify your version so you have to look this up yourself) to set the position of the sphere on every coordinate update.

edit flag offensive delete link more


thanks @kumpakri im looking into it now

hommsy gravatar imagehommsy ( 2019-07-03 02:40:13 -0600 )edit

Question Tools

1 follower


Asked: 2019-06-19 09:51:19 -0600

Seen: 206 times

Last updated: Jun 20 '19