wolf_create.sh : problem creating constraint
I wanted to create a new constraint whose class would be constraintAutodiffApriltag. I ran :
./wolf_create.sh -t constraint -n apriltag -b autodiff
It created the files. During settings we wanted the constraint to have 6 stateblocks. The constructor as created by the script requires 10 stateblocks:
ConstraintAutodiffApriltag(const std::string& _tp, const FrameBasePtr& _frame_other_ptr, const CaptureBasePtr& _capture_other_ptr, const FeatureBasePtr& _feature_other_ptr, const LandmarkBasePtr& _landmark_other_ptr, const ProcessorBasePtr& _processor_ptr, bool _apply_loss_function, ConstraintStatus _status, StateBlockPtr _state0Ptr, StateBlockPtr _state1Ptr, StateBlockPtr _state2Ptr, StateBlockPtr _state3Ptr, StateBlockPtr _state4Ptr, StateBlockPtr _state5Ptr, StateBlockPtr _state6Ptr, StateBlockPtr _state7Ptr, StateBlockPtr _state8Ptr, StateBlockPtr _state9Ptr);
However, those should not appear in the constructor. They are only used in the operator()
method.
Note: The operator()
method is OK now. It has the right number of stateblocks with expected names.
Edited by Dinesh Atchuthan