3 #include <rviz_marker_tools/marker_creation.h>
4 #include <visualization_msgs/Marker.h>
5 #include <moveit/macros/class_forward.h>
8 namespace planning_scene {
9 MOVEIT_CLASS_FORWARD(PlanningScene);
13 MOVEIT_CLASS_FORWARD(RobotState);
14 MOVEIT_CLASS_FORWARD(LinkModel);
19 namespace task_constructor {
22 using MarkerCallback = std::function<void(visualization_msgs::Marker&,
const std::string&)>;
26 void generateMarkersForObjects(
const planning_scene::PlanningSceneConstPtr& scene,
const MarkerCallback& callback,
27 const std::vector<std::string>& object_names = {});
31 void generateCollisionMarkers(
const moveit::core::RobotState& robot_state,
const MarkerCallback& callback,
32 const std::vector<std::string>& link_names = {});
33 void generateCollisionMarkers(
const moveit::core::RobotState& robot_state,
const MarkerCallback& callback,
34 const std::vector<const moveit::core::LinkModel*>& link_models);
38 void generateVisualMarkers(
const moveit::core::RobotState& robot_state,
const MarkerCallback& callback,
39 const std::vector<std::string>& link_names = {});
40 void generateVisualMarkers(
const moveit::core::RobotState& robot_state,
const MarkerCallback& callback,
41 const std::vector<const moveit::core::LinkModel*>& link_models);
45 void generateMarkersForScene(
const planning_scene::PlanningSceneConstPtr& scene,
const MarkerCallback& callback);