[ROS/C++] Using smart pointers in containers
2014年8月17日 17:35
Problem Description:
The memory leak problem was found when I tested the ROS simulation of a large number of robots, say, 50. Basically I have one simulator node and 50 robot controller nodes. Occasionally after running the program for a while, the simulator node may throw a bad_alloc exception and then terminated.