-
Notifications
You must be signed in to change notification settings - Fork 84
RRT time and distance #89
Comments
How do you make use of the QTimer or QElapsedTimer to find out the total time taken? |
It looks like the QTimer in I don't believe we have a setup right now to say how long it has been in seconds, but we do have an iteration counter that kinda works. To get the time taken, I would personally just add a class variable in the There is a way to get the distance, but it is not built in right now. Once the BiRRT is done, you should be able to call |
Thanks a lot! I have 1 quick qn where do you change the start and goal coordinates in the program? |
No worries! In the GUI you should be able to drag the red and green things around. To do it programmatically, you can just call the |
I found the default values are being set here. Is there any easier to define the co-ordinates?
|
Yep! So we use Eigen/Dense for a bunch of stuff. You should be able to just initialize it like
Here's a good reference page |
Thanks! Just a quick qn. What does the red path represent ? Is it the previous solution? |
The red path is the actual RRT solution through all the nodes. The yellow path minimizes the number of waypoints that you need to completely describe the path. The blue path is the smoothed one. I want to say that we use a cubic beziar curve with the waypoints in the yellow path as the anchors. This helps with motion control and stuff since sharp corners are really difficult to deal with. |
Appreciate your fast response. |
Hi,
Is it possible to get the time taken or the distance of the solution?
Thank you!
The text was updated successfully, but these errors were encountered: