Is anyone aware of a GDB extension that allows visualizing / saving clouds in memory from the GDB prompt. I have been working on one myself, but I'm having a few issues.
I used the python bindings for PCL and extended it to support visualization (and XYZRGBA). This works fine and I can load and visualize a point cloud. My problem is that I cannot figure out how to efficiently marshal the raw data from the c++ program being debugged into a format that can be used by pcl-python. Currently I have something like:
but it takes 20-30 seconds to iterate through the memory and create a pointcloud for 640x480 data.
Ideally, I'd just pass the begin and end pointers of the std::vector of points all the way over to c++ and recast to the same std::vector type as in the original program, but my Cython program appears to have a different heap and stack than the program being debugged.
For those unfamiliar, GDB allows a Python script to inspect the memory of a program being debugged. What I'm ultimately trying to do here is reconstitute a point cloud from that memory and display it using a Python / C++ bridge.