sikang / mpl_ros

A ROS wrapper for trajectory planning based on motion primitives
Apache License 2.0
573 stars 148 forks source link

memory increase over time #10

Closed XYvven closed 5 years ago

XYvven commented 5 years ago

hi sikang: I am running your simple code poly_map_planner_node, but the memory increase and the rviz doesn't show any thing.After a while my computer crash.My memory is 64G. do you know why about this?

sikang commented 5 years ago

The memory is increasing due to the searching process, and the RVIZ only shows stuff once the planning is done. So I think this is normal except the searching takes too much space and time. Here are two things worth checking: 1. did you build the binary in Release mode? and 2. what is the configuration (discretization on time and control) you have? Try make coarser resolution and it should largely reduce the computation time...

XYvven commented 5 years ago

Thank you for your reply. First I build this project with command which you recommend "catkin_make_isolated -DCMAKE_BUILD_TYPE=Release".And I don't know how to change the configuration, but I find in 'poly_map_planner_node.cpp' the param use_config0 is true, use_config1 is false. screenshot from 2019-01-16 11-51-50.this picture shows my memory info before I launch your example. screenshot from 2019-01-16 12-03-49 After I launch your example, the memory increas until my computer crash

sikang commented 5 years ago

The default parameters in poly_map_planner_node is not set properly somehow, the goal is outside the map such that the planner cannot reach it and will keep searching for infinity time. The latest commit fixed this bug by extending the range_x default value from 15.0 to 20.0. Thanks for pointing this out!

XYvven commented 5 years ago

It works,thanks for your help