Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. ROS
  4. How to activate collision prevention feature while quad is in offboard trajectory with mavros?

How to activate collision prevention feature while quad is in offboard trajectory with mavros?

Scheduled Pinned Locked Moved ROS
4 Posts 3 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Tamas Pal 0T Offline
    Tamas Pal 0T Offline
    Tamas Pal 0
    Regular
    wrote on last edited by
    #1

    I am using mavros setup for figure 8 trajectory in offboard mode with master branch.
    https://gitlab.com/voxl-public/support/mavros_test.git
    I want to active collison prevention while the quad is following the figure 8 trajectory in a way such that, when an object comes infront of it, it stops and holds the position and when the object is removed it continues to follow the same trajectory. How to do that ?

    Tamas Pal 0T 1 Reply Last reply
    0
    • A Offline
      A Offline
      Anubhav
      Regular
      wrote on last edited by
      #2

      @Chad-Sweet
      Can I do the same without ros? by just modifying offboard_figure_eight.c given here such that it uses it's depth map just to maintain certain distance from obstacles and stop if any obstacle new obstacle come in front of it.
      If so, how can I do it?

      1 Reply Last reply
      0
      • Arjun Jain 0A Offline
        Arjun Jain 0A Offline
        Arjun Jain 0
        wrote on last edited by
        #3

        Hi modal Ai, we are able to do a predefined zig zag pattern. However, we also need collision prevention. This is our last remaining challenge. We will be very greatly for your help.

        1 Reply Last reply
        0
        • Tamas Pal 0T Tamas Pal 0

          I am using mavros setup for figure 8 trajectory in offboard mode with master branch.
          https://gitlab.com/voxl-public/support/mavros_test.git
          I want to active collison prevention while the quad is following the figure 8 trajectory in a way such that, when an object comes infront of it, it stops and holds the position and when the object is removed it continues to follow the same trajectory. How to do that ?

          Tamas Pal 0T Offline
          Tamas Pal 0T Offline
          Tamas Pal 0
          Regular
          wrote on last edited by
          #4

          @modaltb Any suggestion ?

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          ModalAI
          Categories Recent Tags ModalAI.com Docs
          © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups