Home | Tutorials | Wiki | Issues
Ask Your Question
0

Visualize a geofence around a moving drone

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

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.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Comments

thanks @kumpakri im looking into it now

hommsy gravatar imagehommsy ( 2019-07-03 02:40:13 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 23 times

Last updated: Jun 20