captain-yoshi / BehaviorTree.MTC

Use MoveIt Task Constructor with BehaviorTree.CPP
MIT License
4 stars 2 forks source link

Roadmap #15

Open captain-yoshi opened 3 weeks ago

captain-yoshi commented 3 weeks ago

A reminder of things to do before releasing a 1.0.0 release.

TODO:


Namespace

I would propose these changes to better align with BehaviorTree.CPP:

namespace BT {
namespace MTC {

template <typename T = Any>
class SetMTCProperties : public SyncActionNode
{
public:
  SetMTCProperties(const std::string& name, const NodeConfig& config)
    : SyncActionNode(name, config) {}

  NodeStatus tick() override {}

  static PortsList providedPorts() {}
};
} // namespace MTC

template <>
inline MTC::SharedProperty<int> convertFromString<MTC::SharedProperty<int>>(StringView str)
{
  MTC::SharedProperty<int> output = std::make_shared<int>(convertFromString<int>(str));

  return output;
}

} // namespace BT

BT Ports

When moving a stage is it an Input or a Bidirectional Port ? Because the blackboard value is set to nullptr we should set the port to Bidirectional.