mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
add override in Task
I very much considered just removing the protected inheritance again, but it would add unnecessary code duplication. Take note, the overriding `insert` function bypasses the Wrapper and directly forwards to the wrapped container. This is somewhat dirty and could be an issue for anyone inheriting from `Task`.
This commit is contained in:
parent
7cd82d5c04
commit
07f62aa72f
@ -82,7 +82,7 @@ public:
|
||||
ContainerBase::pointer&& container = std::make_unique<SerialContainer>("task pipeline"));
|
||||
Task(Task&& other);
|
||||
Task& operator=(Task&& other);
|
||||
~Task();
|
||||
~Task() override;
|
||||
|
||||
const std::string& id() const;
|
||||
|
||||
@ -93,7 +93,7 @@ public:
|
||||
void loadRobotModel(const std::string& robot_description = "robot_description");
|
||||
|
||||
void add(Stage::pointer&& stage);
|
||||
bool insert(Stage::pointer&& stage, int before = -1);
|
||||
bool insert(Stage::pointer&& stage, int before = -1) override;
|
||||
void clear() final;
|
||||
|
||||
/// enable introspection publishing for use with rviz
|
||||
|
||||
Loading…
Reference in New Issue
Block a user