1#ifndef AUBO_CAPS_INTERFACE_RENDER_INTERFACE_H
2#define AUBO_CAPS_INTERFACE_RENDER_INTERFACE_H
103 const std::vector<std::vector<double>> &points,
104 const std::vector<double> &color);
175 const std::vector<double> &color = { 0.0, 1.0, 0.0, 1.0 },
176 bool axis_visible =
false);
238 void setMoveTrack(
void *wp,
const std::vector<std::vector<double>> &track);
253 void setBlendTrack(
void *wp,
const std::vector<std::vector<double>> &track);
270 void setMoveTrack(
void *wp,
const std::vector<std::vector<double>> &track,
271 const std::vector<double> &color);
289 const std::vector<double> &color);
307 const std::vector<double> &pose);
365 const std::vector<std::vector<double>> &points,
366 const std::vector<double> &color);
387 void addLine(
const std::string &name,
int link_num,
388 const std::vector<double> &pose,
389 const std::vector<std::vector<double>> &points,
390 const std::vector<double> &color);
439 void addPlane(
const std::string &name,
const std::vector<double> &pose,
440 const std::vector<double> &size,
441 const std::vector<double> &color);
462 void addPlane(
const std::string &name,
int link_num,
463 const std::vector<double> &pose,
464 const std::vector<double> &size,
465 const std::vector<double> &color);
516 void addCube(
const std::string &name,
const std::vector<double> &pose,
517 const std::vector<double> &size,
518 const std::vector<double> &color,
int type = 0);
540 void addCube(
const std::string &name,
int link_num,
541 const std::vector<double> &pose,
542 const std::vector<double> &size,
543 const std::vector<double> &color,
int type = 0);
576 void addCube(
const std::string &name,
const std::vector<double> &pose,
577 float length_min,
float length_max,
float width_min,
578 float width_max,
float height_min,
float height_max,
579 const std::vector<double> &color,
int type = 0);
612 void addCube(
const std::string &name,
int link_num,
613 const std::vector<double> &pose,
float length_min,
614 float length_max,
float width_min,
float width_max,
615 float height_min,
float height_max,
616 const std::vector<double> &color,
int type = 0);
654 int addMesh(
const std::string &name,
int link_num,
655 const std::string &model_path,
const std::vector<double> &pose);
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
RenderInterface Provides display option controls related to 3D rendering, including show/hide of grou...
int clearMeshes(int link_num)
clearMeshes
void addPlane(const std::string &name, const std::vector< double > &pose, const std::vector< double > &size, const std::vector< double > &color)
Add/modify plane.
void addCoordinate(const std::string &name, const std::vector< double > &pose)
Add/modify coordinate axis.
void addCube(const std::string &name, const std::vector< double > &pose, const std::vector< double > &size, const std::vector< double > &color, int type=0)
Add/modify cube.
void setMoveTrack(void *wp, const std::vector< std::vector< double > > &track, const std::vector< double > &color)
bool hasPointCloud(const std::string &name)
Check whether the point cloud with the specified name exists.
int removeMesh(const std::string &name)
removeMesh
void addCube(const std::string &name, int link_num, const std::vector< double > &pose, const std::vector< double > &size, const std::vector< double > &color, int type=0)
void clearLines()
Remove all lines.
void removePlane(const std::string &name)
Remove the specified plane.
RenderInterface(RenderInterface &&f)
bool hasWaypoint(void *wp)
Check whether the specified waypoint exists.
void setBlendTrack(void *wp, const std::vector< std::vector< double > > &track, const std::vector< double > &color)
void removeCoordinate(const std::string &name)
Remove the specified coordinate axis.
void setMoveTrack(void *wp, const std::vector< std::vector< double > > &track)
Add/modify the move track for the specified waypoint.
void setRenderEmbeded(bool is_embeded, QGridLayout *gly)
Set the render window to be embedded/removed in the layout gly.
RenderInterface(RenderInterface &f)
void removePointCloud(const std::string &name)
Remove the point cloud with the specified name.
void removeCube(const std::string &name)
Remove the specified cube.
void addPointCloud(const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color)
Add/modify point cloud.
void addLine(const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color)
Add/modify line.
bool hasCoordinate(const std::string &name)
Check whether the specified coordinate axis exists.
void clearWaypoints()
Remove all waypoints.
virtual ~RenderInterface()
void clearPointCloud()
Remove all point clouds.
void addPlane(const std::string &name, int link_num, const std::vector< double > &pose, const std::vector< double > &size, const std::vector< double > &color)
void addCube(const std::string &name, int link_num, const std::vector< double > &pose, float length_min, float length_max, float width_min, float width_max, float height_min, float height_max, const std::vector< double > &color, int type=0)
void removeLine(const std::string &name)
Remove the specified line.
void setShowOptions(uint16_t options)
Set the display mode to control the visibility of various elements.
std::vector< std::string > getMeshes(int link_num)
getMeshes 获取关节 link_num 的外设模型名字
int addMesh(const std::string &name, int link_num, const std::string &model_path, const std::vector< double > &pose)
addMesh 添加任意模型文件
void removeWaypoint(void *wp)
Remove the specified waypoint.
void clearPlanes()
Remove all planes.
void clearCubes()
Remove all cubes.
bool addWaypoint(void *wp, const std::vector< double > &pose, const std::vector< double > &color={ 0.0, 1.0, 0.0, 1.0 }, bool axis_visible=false)
Add/modify waypoint.
void addCube(const std::string &name, const std::vector< double > &pose, float length_min, float length_max, float width_min, float width_max, float height_min, float height_max, const std::vector< double > &color, int type=0)
Add/modify cube with size ranges.
void addLine(const std::string &name, int link_num, const std::vector< double > &pose, const std::vector< std::vector< double > > &points, const std::vector< double > &color)
void setBlendTrack(void *wp, const std::vector< std::vector< double > > &track)