1#ifndef AUBO_CAPS_INTERFACE_RENDER_INTERFACE_H
2#define AUBO_CAPS_INTERFACE_RENDER_INTERFACE_H
73 const std::vector<std::vector<double>> &points,
74 const std::vector<double> &color);
116 const std::vector<double> &color = { 0.0, 1.0, 0.0, 1.0 },
117 bool axis_visible =
false);
155 void setMoveTrack(
void *wp,
const std::vector<std::vector<double>> &track);
163 void setBlendTrack(
void *wp,
const std::vector<std::vector<double>> &track);
172 void setMoveTrack(
void *wp,
const std::vector<std::vector<double>> &track,
173 const std::vector<double> &color);
183 const std::vector<double> &color);
194 const std::vector<double> &pose);
227 const std::vector<std::vector<double>> &points,
228 const std::vector<double> &color);
239 void addLine(
const std::string &name,
int link_num,
240 const std::vector<double> &pose,
241 const std::vector<std::vector<double>> &points,
242 const std::vector<double> &color);
273 void addPlane(
const std::string &name,
const std::vector<double> &pose,
274 const std::vector<double> &size,
275 const std::vector<double> &color);
286 void addPlane(
const std::string &name,
int link_num,
287 const std::vector<double> &pose,
288 const std::vector<double> &size,
289 const std::vector<double> &color);
321 void addCube(
const std::string &name,
const std::vector<double> &pose,
322 const std::vector<double> &size,
323 const std::vector<double> &color,
int type = 0);
334 void addCube(
const std::string &name,
int link_num,
335 const std::vector<double> &pose,
336 const std::vector<double> &size,
337 const std::vector<double> &color,
int type = 0);
355 void addCube(
const std::string &name,
const std::vector<double> &pose,
356 float length_min,
float length_max,
float width_min,
357 float width_max,
float height_min,
float height_max,
358 const std::vector<double> &color,
int type = 0);
375 void addCube(
const std::string &name,
int link_num,
376 const std::vector<double> &pose,
float length_min,
377 float length_max,
float width_min,
float width_max,
378 float height_min,
float height_max,
379 const std::vector<double> &color,
int type = 0);
409 int addMesh(
const std::string &name,
int link_num,
410 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...
The RenderInterface class
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)
添加/修改平面
void addCoordinate(const std::string &name, const std::vector< double > &pose)
添加/修改坐标轴
void addCube(const std::string &name, const std::vector< double > &pose, const std::vector< double > &size, const std::vector< double > &color, int type=0)
添加/修改立方体
void setMoveTrack(void *wp, const std::vector< std::vector< double > > &track, const std::vector< double > &color)
setMoveTrack
bool hasPointCloud(const std::string &name)
查找制定名称的点云是否存在
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)
addCube
void removePlane(const std::string &name)
移除指定平面
RenderInterface(RenderInterface &&f)
bool hasWaypoint(void *wp)
查找指定路点是否存在
void setBlendTrack(void *wp, const std::vector< std::vector< double > > &track, const std::vector< double > &color)
setBlendTrack
void removeCoordinate(const std::string &name)
移除指定坐标轴
void setMoveTrack(void *wp, const std::vector< std::vector< double > > &track)
添加/修改指定路点的交融轨迹
void setRenderEmbeded(bool is_embeded, QGridLayout *gly)
设置 Render 窗口嵌入/移除(isEmbeded) 布局 gly 中
RenderInterface(RenderInterface &f)
void removePointCloud(const std::string &name)
移除指定名称的点云
void removeCube(const std::string &name)
移除指定立方体
void addPointCloud(const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color)
添加/修改点云
void addLine(const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color)
添加/修改线
bool hasCoordinate(const std::string &name)
查找指定坐标轴是否存在
void clearWaypoints()
移除所有的路点
virtual ~RenderInterface()
void clearPointCloud()
移除所有的点云
void addPlane(const std::string &name, int link_num, const std::vector< double > &pose, const std::vector< double > &size, const std::vector< double > &color)
addPlane
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)
addCube
void removeLine(const std::string &name)
移除指定线
void setShowOptions(uint16_t options)
设置显示模式,控制各种元素的显隐
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)
移除指定路点
void clearPlanes()
移除所有的平面
void clearCubes()
移除所有的立方体
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)
添加/修改路点
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)
添加/修改立方体
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)
addLine
void setBlendTrack(void *wp, const std::vector< std::vector< double > > &track)
setBlendTrack