DtShapeRef sr_bc_;
Obstacle static_obstacle_;
DtShapeRef sr_static_obstacles_;
+
+ // Collide RRT procedures
+ std::tuple<bool, unsigned int, unsigned int>
+ collide_steered_from(RRTNode &f);
+
+ std::tuple<bool, unsigned int, unsigned int>
+ collide_two_nodes(RRTNode &f, RRTNode &t);
public:
/*! \brief Initialize SOLID based extension.
*/
// RRT procedures
std::tuple<bool, unsigned int, unsigned int>
collide(std::vector<std::tuple<double, double>> &poly);
- std::tuple<bool, unsigned int, unsigned int>
+ virtual std::tuple<bool, unsigned int, unsigned int>
collide_steered_from(RRTNode &f);
- std::tuple<bool, unsigned int, unsigned int>
+ virtual std::tuple<bool, unsigned int, unsigned int>
collide_two_nodes(RRTNode &f, RRTNode &t);
virtual double cost_build(RRTNode &f, RRTNode &t);
virtual double cost_search(RRTNode &f, RRTNode &t);
#include "rrtext.h"
#include "3D/Quaternion.h"
+std::tuple<bool, unsigned int, unsigned int>
+RRTExt2::collide_steered_from(RRTNode &f)
+{
+ return std::make_tuple(false, 0, 0);
+}
+
+std::tuple<bool, unsigned int, unsigned int>
+RRTExt2::collide_two_nodes(RRTNode &f, RRTNode &t)
+{
+ return std::make_tuple(false, 0, 0);
+}
+
void solid_collide(
void * client_data,
DtObjectRef obj1,