Comments (5)
Yep, that's a memory leak! Good find. @ashaw596, you're right - it would probably be better to store the nodes directly in the vector rather than via pointer. It would be more efficient and a little simpler too.
from rrt.
Nice catch! I think your're right. @justbuchanan @joshhting Is there any particular reason _nodes its a vector of Node* instead of just Node?
from rrt.
I think that it needs to be a Node* because otherwise we'll need to store all the nodes on the stack (or have a pointer to a vector). Does vector automagically put things in the heap for you? I'm not sure.
@SiyuanQi Thanks! that definetly looks like a problem. If you want, you can submit a pull request if you're sure about it, you did find it after all 😄
@joshhting can you verify that this is actually a memory leak? It looks like it is to me at a first glance (I don't have enough time to look at it too closely 😢)
from rrt.
I mean vector allocates everything on the heap anyways so that shouldn't be an issue. Why don't we just change it to a normal vector? Is there any weird ownership stuff thats going on?
from rrt.
I don't think there is, but josh or justin probably would have a better idea. In that case we might want to refactor that (but after we merge the PR's justin is submitting).
from rrt.
Related Issues (20)
- RRT Documentation + Doc Generation HOT 1
- Change type of _nodes from std::vector<Node<T>*> to std::vector<Node<T>>
- Make a dark theme for the rrt visualizer
- Path can go through obstacle corners HOT 2
- Goal Bias should be implemented by modifying random pool instead of going directly towards goal
- RRT Optimization -- Straight Path Planning HOT 6
- Main.qml not found on ubuntu 16.04 HOT 3
- Benchmark rrt with google/benchmark HOT 4
- Preset obstacle configurations for the viewer
- Convert floats to doubles
- CMU Link in Readme returns 404 HOT 2
- BiRRT does not check for valid transitions when trying to connect the two trees
- rrt-viewer crashes if the tree start points are moved before a step is taken HOT 1
- Repeatable experiments HOT 5
- Running RRT without the GUI HOT 6
- Creating obstacles programatically HOT 9
- RRT time and distance HOT 9
- Modifying your open code HOT 5
- Are there any papers about this Bi-RRT? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rrt.