Skip to content

Unable to compile project #21

Description

@dwya222

Several errors with the SMP class

In file included from 
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SamplingMotionPlanning.cpp:1:
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:20:22: error: extra qualification on member 'start'
        static ofVec2f SMP::start;
                       ~~~~~^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:22:21: error: extra qualification on member 'root'
        static Nodes* SMP::root;
                      ~~~~~^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:23:21: error: extra qualification on member 'target'
        static Nodes* SMP::target;
                      ~~~~~^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:24:21: error: extra qualification on member 'nextTarget'
        static Nodes* SMP::nextTarget;
                      ~~~~~^
In file included from 
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SamplingMotionPlanning.cpp:3:
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/InformedRRTstar.h:6:7: warning: 'InformedRRTstar::nextIter' hides overloaded virtual function [-Woverloaded-virtual]
        void nextIter(std::list<Nodes> &nodes, std::list<obstacles*> obst);
             ^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/RRTstar.h:7:15: note: hidden overloaded virtual function 'RRTstar::nextIter' declared here: different number of parameters (3 vs 2)
        virtual void nextIter(std::list<Nodes> &nodes,std::list<obstacles*> obst, Nodes* u_ = NULL);
                     ^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SamplingMotionPlanning.cpp:223:34: error: taking the address of a temporary object of type 'Nodes' [-Waddress-of-temporary]
                RRTstar::nextIter(nodes, obst, &InformedRRTstar::sample(min_cost));
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 5 errors generated.
make[1]: *** [obj/osx/Release/src/SamplingMotionPlanning.o] Error 1
make: *** [Release] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions