I'm having some trouble running the path planning code. I tracked the error and the problem is here
fcl::OcTree* tree = new fcl::OcTree(std::shared_ptr<const octomap::OcTree>(tree_oct));
by the way, pkg-config fcl --modversion
shows 0.5.0
any Ideas??
Error:
Initialized: OMPL version: 1.4.2 Initialized Stack trace (most recent call last): #18 Object "", at 0xffffffffffffffff, in #17 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f967049, in _start #16 Source "../csu/libc-start.c", line 310, in __libc_start_main [0x7f447ffdfc86] #15 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f967d81, in main #14 Object "/opt/ros/melodic/lib/libroscpp.so", at 0x7f44829e737a, in ros::spin() #13 Object "/opt/ros/melodic/lib/libroscpp.so", at 0x7f44829fea38, in ros::SingleThreadedSpinner::spin(ros::CallbackQueue*) #12 Object "/opt/ros/melodic/lib/libroscpp.so", at 0x7f44829a72fa, in ros::CallbackQueue::callAvailable(ros::WallDuration) #11 Object "/opt/ros/melodic/lib/libroscpp.so", at 0x7f44829a5558, in ros::CallbackQueue::callOneCB(ros::CallbackQueue::TLS*) #10 Object "/opt/ros/melodic/lib/libroscpp.so", at 0x7f44829fae91, in ros::SubscriptionQueue::call() #9 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f98c5a8, in ros::SubscriptionCallbackHelperT<boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&, void>::call(ros::SubscriptionCallbackHelperCallParams&) #8 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f98d8f2, in boost::function1<void, boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> >::operator()(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const>) const #7 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f983e87, in boost::detail::function::void_function_obj_invoker1<boost::function<void (boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&)>, void, boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> >::invoke(boost::detail::function::function_buffer&, boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const>) #6 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f98678f, in boost::function1<void, boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&>::operator()(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&) const #5 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f97c712, in boost::detail::function::void_function_obj_invoker1<boost::_bi::bind_t<void, void (*)(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&, planner*), boost::_bi::list2<boost::arg<1>, boost::_bi::value<planner*> > >, void, boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&>::invoke(boost::detail::function::function_buffer&, boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&) #4 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f97f6d8, in void boost::_bi::bind_t<void, void (*)(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&, planner*), boost::_bi::list2<boost::arg<1>, boost::_bi::value<planner*> > >::operator()<boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&>(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&) #3 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f981a48, in void boost::_bi::list2<boost::arg<1>, boost::_bi::value<planner*> >::operator()<void (*)(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&, planner*), boost::_bi::rrlist1<boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&> >(boost::_bi::type<void>, void (*&)(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&, planner*), boost::_bi::rrlist1<boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&>&, int) #2 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f967477, in octomapCallback(boost::shared_ptr<octomap_msgs::Octomap_<std::allocator<void> > const> const&, planner*) #1 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f96b982, in fcl::OcTree::OcTree(std::shared_ptr<octomap::OcTree const> const&) #0 Object "/home/rnd/catkin_ws/devel/.private/path_planning/lib/path_planning/path_planning_node", at 0x55fc8f96920e, in octomap::AbstractOccupancyOcTree::getOccupancyThres() const Segmentation fault (Address not mapped to object [0x18]) Segmentation fault (core dumped)