The codes were crushed due to the EigenTrajectoryPoint::Vector states = mavMsgToPlanningMsg(tmp_states); which using the reinterpret_cast to transform the vector mav_msgs::EigenTrajectoryPointVector. I modified the active_3d_planning_mav/src/tools/linear_mav_trajectory_generator.cpp . Traversed the vector and
using reinterpret_cast to every element, then push_back them to a new active_3d_planning::EigenTrajectoryPointVector. And then it works.
Additionally, I only use the gazebo, the planning_gazebo_launch.cpp controls MAV do an initial action.
You can start the planning by running the following command in the terminal.
The codes were crushed due to the
EigenTrajectoryPoint::Vector states = mavMsgToPlanningMsg(tmp_states);
which using thereinterpret_cast
to transform the vectormav_msgs::EigenTrajectoryPointVector
. I modified theactive_3d_planning_mav/src/tools/linear_mav_trajectory_generator.cpp
. Traversed the vector and usingreinterpret_cast
to every element, thenpush_back
them to a newactive_3d_planning::EigenTrajectoryPointVector
. And then it works.Additionally, I only use the gazebo, the planning_gazebo_launch.cpp controls MAV do an initial action. You can start the planning by running the following command in the terminal.
Don't forget to modify the
pointcloud_out
into your gazebo sensor output topic. And launch a MAV model which you have.