Closed egorfolley closed 1 year ago
What is the initial height of your drone? Can you try changing the collision distance? You can change the margin in kinodynamic_astar.cpp file line no. 363. Here is the code snippet
void fast_planner::KinodynamicAstar::setParam(ros::NodeHandle& nh) { nh.param("search/max_tau", maxtau, 0.6); nh.param("search/init_max_tau", init_maxtau, 0.8); nh.param("search/max_vel", maxvel, 2.0); nh.param("search/max_acc", maxacc, 3.0); nh.param("search/w_time", wtime, 10.0); nh.param("search/horizon", horizon_, 6.0); nh.param("search/resolutionastar", resolution, 0.05); nh.param("search/time_resolution", timeresolution, 0.8); nh.param("search/lambda_heu", lambdaheu, 1.0); nh.param("search/margin", margin_, 1.0); CHANGE THIS THRESHOLD AND CHECK nh.param("search/allocate_num", allocatenum, 100000); nh.param("search/check_num", checknum, 5);
@deepak-1530 Yes, just checked these parameters, and it works, thanks!
Do you have a description of each param or I can understand them from a code?
Multiple thanks!
Hey @deepak-1530,
Thanks a lot for this great repo, it's highly useful and valuable. I am facing an issue every time I am trying to build a trajectory. I am running it on Jetson Ubuntu 20 with ROS Noetic (ROS 1) and the sensor is ZED Mini. (I also tried using laptop - same issue).
I changed the
MappingDrone.launch
file:I changed
camera_link
tozedm_base_link
because I use camera as a visual localization (link). I also changed the localization in my PX4 (link). Also, I made changes to Planner to subscribe tozed_node/pose
for pos, instead of mavros node. I am moving camera and my odometry position is changing and 3D map accordingly. Am I doing something wrong?Next steps:
I have next outcome (last few lines of code):