41 #include <moveit/macros/class_forward.h>
42 #include <moveit_task_constructor_msgs/TaskDescription.h>
43 #include <moveit_task_constructor_msgs/TaskStatistics.h>
44 #include <moveit_task_constructor_msgs/Solution.h>
45 #include <moveit_task_constructor_msgs/GetSolution.h>
47 #define DESCRIPTION_TOPIC "description"
48 #define STATISTICS_TOPIC "statistics"
49 #define SOLUTION_TOPIC "solution"
50 #define GET_SOLUTION_SERVICE "get_solution"
53 namespace task_constructor {
55 MOVEIT_CLASS_FORWARD(Stage);
56 MOVEIT_CLASS_FORWARD(SolutionBase);
59 class IntrospectionPrivate;
67 IntrospectionPrivate* impl;
75 moveit_task_constructor_msgs::TaskDescription&
81 moveit_task_constructor_msgs::TaskStatistics&
fillTaskStatistics(moveit_task_constructor_msgs::TaskStatistics& msg);
98 bool getSolution(moveit_task_constructor_msgs::GetSolution::Request& req,
99 moveit_task_constructor_msgs::GetSolution::Response& res);
108 void fillStageStatistics(
const Stage& stage, moveit_task_constructor_msgs::StageStatistics& s);
109 void fillSolution(moveit_task_constructor_msgs::Solution& msg,
const SolutionBase& s);
Definition: introspection.h:66
moveit_task_constructor_msgs::TaskDescription & fillTaskDescription(moveit_task_constructor_msgs::TaskDescription &msg)
fill task description message for publishing the task configuration
Definition: introspection.cpp:231
void publishSolution(const SolutionBase &s)
publish the given solution
Definition: introspection.cpp:163
void publishTaskDescription()
publish detailed task description
Definition: introspection.cpp:139
bool getSolution(moveit_task_constructor_msgs::GetSolution::Request &req, moveit_task_constructor_msgs::GetSolution::Response &res)
get solution
Definition: introspection.cpp:189
moveit_task_constructor_msgs::TaskStatistics & fillTaskStatistics(moveit_task_constructor_msgs::TaskStatistics &msg)
fill task state message for publishing the current task state
Definition: introspection.cpp:266
void registerSolution(const SolutionBase &s)
register the given solution, assigning a unique ID
Definition: introspection.cpp:154
void publishAllSolutions(bool wait=true)
publish all top-level solutions of task
Definition: introspection.cpp:169
void reset()
indicate that this task was reset
Definition: introspection.cpp:149
uint32_t stageId(const moveit::task_constructor::Stage *const s) const
retrieve id of given stage
Definition: introspection.cpp:202
uint32_t solutionId(const moveit::task_constructor::SolutionBase &s)
retrieve or set id of given solution
Definition: introspection.cpp:209
void publishTaskState()
publish the current state of task
Definition: introspection.cpp:144
abstract base class for solutions (primitive and sequences)
Definition: storage.h:269