Fence within Waypoint map and does camera trigger works in Rover Mode?

Question 1: I am wondering if there is a way to create a fence within Waypoint map for a Rover not to follow its defined path?

For example, in my case I am going to make a rover go back and forth in my backyard and spray fertilizer. I happen to have a number of trees in my backyard and I want the rover to go around those trees (I can find the lat. long of those trees) but continue on to its mission.

Trying to avoid obstacle avoidance system at this point and I do not want to manually plot the path (Which is doable) to make the rover go around each tree.

Just curious what options are out there.

Question 2: Does the camera trigger function works in Rover mode? I want to use the camera trigger feature to activate and de activate fertilizer sprayer at fixed intervals as defined in mission planner. This will be used to control spray of fertilizer.

Thanks for your help.

About question 2, I have no idea about camera trigger, but you can use the same Mission Planner you used to make this grid to automatically place servo High at the start of the line and servo Low at the end (or even use a relay, the command it uses is the DO_SERVO_RELAY).

About Question 1, you can use the Path Planner to avoid the fence, but as soon as the obstacle is cleared, it will not come back to the former line, going to the next wp in a straight line. So I think you would have to make it manually with wps around the trees.

Best Regards,
Bruno Bagarini

1 Like

You can use BendyRuler obstacle avoidance around fences with a few caveats:

It takes some tuning to get the behavior as good as it can be, and even then, it may skip some thin strips on either side of a fence as it converges back to the planned path.

Waypoints should generally not be placed inside fences. There are some guards to avoid completely errant behavior if this happens, but it should be avoided if at all possible. So auto-generated paths may still require some tweaking to ensure predictability.

2 Likes

In Ardu coptter and or Ardu Plane, the camera trigger allows you take pictures at an interval you define in settings. In other words a relay is ON (trigger) and then OFF and then ON again and so on. Its done automatically.

I was trying to figure out if that feature is available in Ardu Rover or not.

I kind up read up on BendyRuler. Instructions are not very clear. Will read again.

https://ardupilot.org/copter/docs/common-oa-bendyruler.html

Now I am noticing that the GEO fence is not something I can define inside the Planner. Its asking to load a file. Little confused.

No additional hardware required for geo-referenced obstacle avoidance.

Fences are defined on the PLAN screen of Mission Planner by using this dropdown in the corner of the map.

image

2 Likes

Got it… Thank you! I am assuming one can create multiple fence right?

Yes, you can create quite a few (probably hundreds).

Its only allowing just one fence. If you pick another area, it just adds another way point to the old one.

Inclusion and Exclusion Fences — Rover documentation (ardupilot.org)

You can most definitely create many exclusion fences.

1 Like

got it.

Found this video. It helped.

Perfect. This will work…

Also, SetCamTrigDist seems to work fine in Rover. However, it’s a VERY brief toggle of the relay from low to high (or vice versa). So you may need some additional circuit logic to use it for toggling your sprayer on and off.

1 Like

Agree. I can design a delay circuit to keep the spray ON longer. or option two would be to use some external companion computer to control the spray trigger.

My end goal is to stop the sprayer while the Rover is making U turn’s.

Nice work :slight_smile: “I think the neighbors think I am crazy and that’s fine” lol Classic, I am joining the club soon. I also have 2 acres of land. First I am completing a weed/fertilizer/grass seeding system and next is mower like yours!

This is my bad boy.

2 Likes

I don’t really have time to take on paid client work, but here’s a Lua script that might do exactly what you need.

It simply replaces all camera trigger commands with alternating relay on/off commands when a mission is started.

replace-cam-trigger.lua (1.7 KB)

1 Like

Thanks. I will check it out.

Your mower project is awesome.

You can use the grid option that I told you in my first message to automaticaly turn the relay ON/OFF in the turnarounds. That’s why I thought it was stranger when you asked about camera trigger, this feature has a completely different behaviour from what is need for a sprayer, as @Yuri_Rage clarified.

1 Like

@BrunoBagarini I understand what you are saying but there are two scenarios:

  1. Turn the sprayer OFF completely while making turns.
  2. Turn ON and OFF sprayer at defined intervals while following its way points.

When you spray, you don’t keep the sprayer ON always, it gets ON and OFF based on type of spray you are using and its spray diameter vs. speed of the rover to avoid over lapping of spraying of chemicals. This allows even spray of e.g. weed killing chemical. Excess chemical can actually damage the grass if one is not careful.

When it comes to fertilizer always ON maybe ok but it all depends on the strength of the fertilizer.

This rover is designed to do three functions. Weed control, fertilizer and then grass seeding all in one machine, but each trip will be based on what function the rover will perform and we change settings accordingly per trip.

My next goal is to do spot spray using a weed detection software to eliminate excess use of chemicals which is bad for the soil.

I hope this clarifies things.

1 Like

Nice man, thanks for sharing this!