Surface Navigation with BlueROV

Hello,

I have come across many different posts about BlueROV surface navigation, from ones about not being able to enter guided and auto mode to the immediate dive response from the vehicle once these modes are armed. I have been working on adapting my BlueROV to be a surface-only vessel through a few modifications: 1) I first made it operate remotely by removing the tether. I use QGroundControl to control and communicate with it during flight, as well as make the movement plans. I should also note that my ROV is in the heavy configuration. 2) I made the vehicle positively buoyant and added styrofoam floaties to guarantee it will not submerge. This has been very useful for recovering the vehicle and maintaining a connection. 3) I added a GPS antenna with a mast tower so it can reach satellites. This was the first step I did just to get coordinates to appear on QGroundControl. 4) Getting a depth sensor was the final piece I needed to make the robot actually run on its own. Mine had been used for a different robot, and without it I could not get into guided or auto mode. Once it was installed alongside the GPS, I was able to fly. 5) Most recently, I added an external compass, as my EKF kept spiralling, resulting in the robot making endless circles when trying to navigate between waypoints.

I have been making changes to the parameters, trying to adjust and improve the line-following capabilities. With the recent adjustment of adding a compass outside the capsule, the path following seemed to improve, along with slowing down the waypoint speed and increasing the radius of the targets.

I decided to write this to hopefully help people who come across the surface navigation for BlueROV and to hopefully gain some assistance in improving my robot. I tested it yesterday, and while it appears that the EKF no longer enters free fall and makes the robot spin in endless loops, the accuracy is not the best. The conditions were windy, and I suspect that had an impact, but I also noticed an improvement when I activated all the thrusters. Up to that point, I had turned off the vertical thrusters to get around the immediate dive response. When I activated all of the thrusters, the vertical ones tried to dive, but since the robot was positively buoyant, they never stopped. While this may burn through the battery quicker, I think there was some improvement in the path following. Ultimately, I think my issues with inaccurate travel stem from GPS-related errors, as the QGroundControl robot had very sporadic movements compared to the actual robot. My current fix was to add another GPS device and see if the accuracy improved.

This ended up being a lot of rambling, but I wanted more help on some things: 1) if there were any clues on being able to have the software ignore the vertical aspect of movement to improve flight without having the vertical thrusters on. 2) if y’all think a second GPS would improve the flight, or that there may be another issue I missed. 3) I keep changing the waypoint behavior between trials, and no matter what is selected, be it 'Never Change Yaw ’ or 'Face Next Waypoint ', there is usually a few seconds of spinning from the robot even after a trial has been performed. If this is just the robot finding itself, no worries, I would just love more info on how those behaviors change the procedure. I currently have not had consecutive waypoint trials that have instilled confidence in the robot’s ability to follow a waypoint behavior parameter or a line. I am not looking for any miracles, I just need some more information on the details of the waypoint following. I hope this helps someone, and I greatly appreciate the forums, as they have helped me quite a bit.

Lastly, I am fully aware that the BlueBoat is the better version of what I am trying to do; I only have access to the BlueROV, so I’m making it work.

Hi @petrej013 -
In answer to your questions:

  1. Your vehicle tries to dive to reach the altitude of the waypoints you’re setting. This should be fixable in software, and not even need that extra flotation! Cockpit is generally a more modern Ground Control Station software, and it’s not only more customizable, it lets you set the waypoint altitude in a way that may work better? It’s also now the only officially supported GCS for the BlueROV2, and soon the BlueBoat as well!
  2. A second GPS is not going to help, the issues you’re having are not related to GPS accuracy I would guess, but without a .BIN log we can’t say anything based on evidence! Sharing one would help…
  3. Not a lot of testing or tuning has been accomplished with ArduSub and the BlueROV2 - you may need to tune parameters related to navigation to get things working better.

Any surface vessel is going to have a batter time than an ROV - it has orders of magnitude more drag, and while you’ve liminated tether drag, it’s just not a platform intended or suited for surface navigation. Given you only have access to the BlueROV, what are you trying to accomplish with your use of it?

Hello @tony-white ,

Thank you so much for getting back to me!

  1. I greatly appreciate you letting me know. I had seen it mentioned, but was not sure which option was better. I will definitely make the switch.

  2. I am unable to attach a bin file, as I am a new user, but I have it for when permissions change.

  3. This was the direction I had been pursuing. I’m glad to hear you agree it’s the right path.

The main goal is to test the SimplePingSurvey Extension, and given the cost of a DVL, the rationale was that using GPS and operating at the surface would be more affordable.

Hi @petrej013 -
Welcome to the forums! I update dyour account to be a basic user, you should be able to upload a log file now - it may take us a few days to get around to reviewing it!

A tool like Claude Code may be helpful in tuning the ROV in a future session, but would require internet access while also wirelessly connecting to the ROV. Are you connecting via the BlueOS WiFi hotspot or did you install a wireless radio?

What external compass are you using?

When I developed that extension, I never thought it may be used with an ROV! It may need some tweaks to work with an ArduSub based vehicle. What types of bodies of water are you intending to map? How large of an area and what typical depth range? The 25 degree beam width of the Ping sonar makes for fairly coarse maps in most situations…

Terrific, no rush on time. Apologies for the chaotic nature of this file. I tried a variety of tests within the same log. I disarmed the robot between each one, and every test was a waypoint test.

I am using a hotspot to connect.

Here is the compass I am using. It is fairly cheap, but it is away from the electronics: HiLetgo QMC5883L GY-271 3-5V IIC Triple Axis Compass Magnetic Sensor Module Electronic Compass Module Compatible HMC5883L: Vehicle Amplifier Fuses: Amazon.com: Industrial & Scientific

I have been quite impressed with the extensions thus far. When I initially tested it with a tether and controller, the extension did fairly well. Since it was made into an AUV, the main tests have been in a shallow lake, with the ultimate goal being the shallow waters of the Gulf of Mexico. Nothing more than 30m deep and probably the area of a football field. The survey area size will depend mainly on the battery life and number of passes needed to fill out a map.

petrej013_bin_test.zip (15.4 MB)

If you’re not using them at all, you could just remove them from the vehicle? Or at least disable the outputs for them on the Vehicle Setup page in BlueOS?

I have had them disabled and have mainly left them on for future ease since they do not do anything. I had been wondering if turning them on would improve the flight path, and it seemed to. I have also been doing more digging into my parameters, and a bench test revealed that I had the coordinate system for the BlueROV reversed.

If you haven’t already, try adjusting the SURFACE_DEPTH parameter - it’s intended to keep the thrusters below the water line to avoid choking on air, and may be causing the control system to focus a bunch of its output on pushing the vehicle down instead of just following your requested horizontal motions.

That said, if your vehicle is riding too high in the water, part of what’s reducing the performance may be the horizontal thrusters choking on air…

I will definitely check out that parameter. The flotation has been adjusted so that the horizontal thrusters are always below the water line, but not a bad idea double checking that. I also fixed the offset for my GPS and compass and think that might make a difference. I am going to test tomorrow and should have a better update as to how the movement is progressing with these changes. It may have simply been an offset problem. Regardless, y’all have been exceedingly helpful with ideas and places to check, and I greatly appreciate it.