2018-05-10から1日間の記事一覧
また[1]を参考に、修正を加えてみます。 1.障害物を追加 2.cboundsの値を調整 3.アニメーションを追加 #pragma once #include "ofxOMPL.h" #include "ofMain.h" class Scheduler : public ofThread { public: unsigned long counter = 0; std::vector<double> </double>…
omplのdemo_RigidBodyPlanningWithControlsをopenFrameworksに移植していきます。 ofxOMPL.hの更新 必要なヘッダーファイルを足していきます。 ofxOMPL.h #pragma once // Plaease add these settings manually // #include path example: D:\workspace\ompl…
障害物を追加してみましょう。参考文献1を参考に、障害物を置きます。変更点を抜粋して説明していきます。 1.障害物オブジェクトobstacleをofApp.hで定義します。 ofAppクラスに物体を定義します。 ofBoxPrimitive obstacle; 2.isStateValid関数に判別…