1 #ifndef CHOREO_VISUAL_TOOL_H 2 #define CHOREO_VISUAL_TOOL_H 12 #include <Eigen/Geometry> 17 #include <choreo_msgs/ElementCandidatePoses.h> 18 #include <choreo_msgs/AssemblySequencePickNPlace.h> 45 typedef std::vector<choreo_msgs::ElementCandidatePoses>
PathArray;
56 void init(std::string frame_name,
57 std::string marker_topic,
58 robot_model::RobotModelConstPtr robot_model = robot_model::RobotModelConstPtr());
65 path_array_ = path_array;
66 convertWireFrameVisual(path_array_, visual_path_array_);
72 path_array_ = path_array;
73 convertPathVisual(path_array_, visual_path_array_);
82 void visualizeAllPaths();
86 void visualizePathUntil(
int index);
89 void visualizeFeasibleOrientations(
int index,
bool solid);
94 void visualizeAllWireFrame();
97 void visualizeWireFrameUntilLayer(
int index);
103 void visualizeSequencePickNPlaceUntil(
int index);
105 void visualizeGraspPickNPlace(
int index,
int grasp_id,
bool visualize_ee);
107 void visualizeAllSequencePickNPlace();
109 void visualizeSupportSurfaces();
110 void visualizeSupportSurfaces(
const std::vector<std::string>& pick_contact_surf_names,
111 const std::vector<std::string>& place_contact_surf_names);
115 void cleanUpAllPaths();
118 void convertPathVisual(
const PathArray& path_array, VisualPathArray& visual_path_array);
119 void convertWireFrameVisual(
const PathArray& path_array, VisualPathArray& visual_path_array);
130 choreo_msgs::AssemblySequencePickNPlace
as_pnp_;