Closed orikuma closed 6 years ago
I want to use a class which inherits FootstepState for additional features, which include some closed codes.
I want to use a class which inherits FootstepState
Is it require to change FootstepGraph.h
It does not require to change FootstepGraph. (I use different graph class, which has some functions with same name as FootstepGraph but different process for closed programs)
So, I think you are happy to make new aster class.
Thank you for merging. (At first, I consider to inherit AstarSolver class but it become almost same as FootstepAstarSolver.)
Problem: When a FootstepAstarSolver instance is generated with GraphT which has a different state type from FootstepState, a compilation error occurs because there are some hard-coded FootstepState::Ptr in its member functions.
Proposed solution: I replaced hard-coded FootstepState::Ptr to StatePtr, which is defined in FootstepAstarSolver and equivalent to GraphT::StateT::Ptr, in order to refer the state type used in GraphT. I assume that the behavior of a FootstepAstarSolver with a FootstepGraph is not changed by this PR.