-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 20 segmentation fault #117
Comments
I met the same problem. Finally, I found int KinodynamicAstar::timeToIndex(double time)
{
int idx = floor((time - time_origin_) * inv_time_resolution_);
} this fun should have a return value. However when I fixed this problem, I met another problem. opt.set_min_objective(BsplineOptimizer::costFunction, this); when the code arrived where the above code line is, the bspline_opt crashed for no reasons. Now i haven't fixed this problem. |
these functions |
@brunopinto900 @anyway-blows I realised that my code went into the below snippet and continued(L189) thereafter. That is why it's unable to reach to this line(L278), where new pro_node is pushed to open_set_.
Also, I have included return value to avoid the Eigen:bad_alloc error in
Thanks! |
@iamrajee Thare are two more bugs in fast-planner codes, which are functions Their declarations both declaim a return value: L69-L72 their returns are unnecessary, so I changed them to return wish to be useful to you. |
@anyway-blows You're right, thank you for the insights. The weird part is that I have also tested the same code of Fast_Planner on ubuntu18.04 Melodic, where it works without any issue or error. It's only noetic where I'm getting this error( |
@iamrajee have you been able to run it on noetic? |
Nopes! I eventually shifted to melodic - |
Hi @iamrajee , thanks for your sharing. You previouse comments are valuable! I follow your steps and successfully find the problem in kinodynamic_astar.cpp. After that, I encountered the same problem: open set empty, no path.... Finally, after following the instructions from @anyway-blows . I successfully figure that out. Here is my modification, hope others will be able figure that out as well.
|
Thanks! This really helped me out! Previous I encounter the same problem which is mentioned by @iamrajee . Now the simulation is good to go. Also, thank you teams from HKUST-Aerial-Robotics! I am also willing to keep contributing to this repo. If anyone still in the trouble working with Ubuntu 20.04 and ROS-Noetic. Please feel free to contact me anytime! |
I met the same problem which is mentioned by @iamrajee .how could i fix it thanks!!@ba1Sta |
Hello,
I launched ROS with this "roslaunch plan_manage kino_replan.launch"
When i give a goal with the 2D navigation goal plugin in RVIZ, its printed, on the terminal, the following:
Triggered!
[TRIG]: from WAIT_TARGET to GEN_NEW_TRAJ
[kino replan]: -----------------------
start: -19 0 0, 0 0 0, 0 0 0
goal: -10.9901 -0.233514 1, 0 0 0
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Stack trace (most recent call last):
#8 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#7 Object "/home/bruno/fast_plan_ws/devel/lib/libpath_searching.so", at 0x7f460ba8e570, in
#6 Object "/home/bruno/fast_plan_ws/devel/lib/plan_manage/fast_planner_node", at 0x7f460bb208f9, in Eigen::internal::throw_std_bad_alloc()
#5 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f460b13a798, in __cxa_throw
#4 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f460b13a4e6, in std::terminate()
#3 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f460b13a47b, in
#2 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f460b12e950, in
#1 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f460ad45858, in abort
#0 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f460ad660fb, in gsignal
Segmentation fault (Signal sent by the kernel [(nil)])
[fast_planner_node-1] process has died [pid 13388, exit code -11, cmd /home/bruno/fast_plan_ws/devel/lib/plan_manage/fast_planner_node /odom_world:=/state_ukf/odom /sdf_map/odom:=/state_ukf/odom /sdf_map/cloud:=/pcl_render_node/cloud /sdf_map/pose:=/pcl_render_node/camera_pose /sdf_map/depth:=/pcl_render_node/depth __name:=fast_planner_node __log:=/home/bruno/.ros/log/62741276-f6d0-11eb-9763-089798ca460b/fast_planner_node-1.log].
log file: /home/bruno/.ros/log/62741276-f6d0-11eb-9763-089798ca460b/fast_planner_node-1*.log
What could be wrong?
I have Eigen 3.3.9
The text was updated successfully, but these errors were encountered: