Closed 9woods123 closed 2 years ago
Hi @9woods123
Thanks a lot for your interest! The main issue with FeasibleRRTStar is a problem with a downstream package (https://github.com/ethz-asl/mav_trajectory_generation) as far as I know, which we currently don't have the resources to fix.
If you use the regular RRTStar the outcome should be almost exactly the same in simulation and on a real robot with a decent controller (we tested this on one of our hexacopters too). So for the moment I'd recommend just sticking to RRTStar.
Hope this helps, let us know if you have more questions.
Thanks for the reply, your RRTStar work is excellent. I am going to study the package [mav_trajectory_generation] that you have mentioned, maybe I will have more questions in the future.
After my debug, I am sure the problem is in the
bool LinearMavTrajectoryGenerator::createTrajectory(
const EigenTrajectoryPoint& start, const EigenTrajectoryPoint& goal,
EigenTrajectoryPointVector* result)
the code shut down when run the following sentence :
EigenTrajectoryPointVector states = mavMsgToPlanningMsg(tmp_states);
where:
inline const EigenTrajectoryPointVector& mavMsgToPlanningMsg(
const :: mav_msgs::EigenTrajectoryPointVector& mavTraj) {
return *reinterpret_cast<const EigenTrajectoryPointVector*>(&mavTraj);
}
Maybe you have solution to the *reinterpret_cast<const EigenTrajectoryPointVector*>(&mavTraj);
? I think the problem is right here.
I try to turn the mav_msgs::EigenTrajectoryPoint
to the EigenTrajectoryPoint
like following:
EigenTrajectoryPointVector R;
for( auto &ts : tmp_states)
{
EigenTrajectoryPoint r= *reinterpret_cast<const EigenTrajectoryPoint*> (&ts) ;
R.push_back(r);
}
*result = R;
And it works well !
Great to hear! Please feel free to open a PR for this fix, this might also be useful for others!
Thank you for your investigations and contribution! This issue should be fixed as of #50 .
Hello!Thank you for opening such a great job! I am trying to modify the planner_config (.yaml file)for using "FeasibleRRTStar" which is mentioned in the wiki. But when I modify the type from "RRTStar" to the "FeasibleRRTStar", the program cannot proceed. If you have a planner_config for "FeasibleRRTstar", could you please upload it? Looking for your kind reply.
Here is my config
and, the (error) output in the terminal: