Hi @Pat31, translating simulated behaviors to the real robot is a whole area of research and something where our engineers are working actively. Getting basic behaviors translated from simulation to the real robot was already done. Something relevant to note is that possibly, the parameters that you're using in your simulated vehicle are not the same in your real vehicle. This is something you need to account for.
Assuming that your environmental conditions are appropriate (otherwise you'll need to do something to compensate) and that your vehicle is properly configured (good parameters, autotuned, etc.) you should be able to get good behaviors with the that code example.
If I were you, I'd proceed in the following manner:
- Get myself familiar with the autopilot parameters.
- Simulate whatever behavior you want to with our tools and a
parameter set A.
- Translate the behavior in the real vehicle with a
parameter set B (you'll find the default ones here)
- Based on the experimental tests, modify
parameter set A and
parameter set B and iterate over steps 2) and 3) until the simulated behavior and the real one are coherent.
At any point, feel free to share your
parameters with us. That way, our team will be able to help.
Alternatively, I've you have additional budget that you're willing to allocate, we can help you through our robotic services.