1#ifndef AUBO_CAPS_INTERFACE_RENDER_INTERFACE_H
2#define AUBO_CAPS_INTERFACE_RENDER_INTERFACE_H
65 const std::vector<std::vector<double>> &points,
66 const std::vector<double> &color);
104 const std::vector<double> &color = { 0.0, 1.0, 0.0, 1.0 },
105 bool axis_visible =
false);
139 void setMoveTrack(
void *wp,
const std::vector<std::vector<double>> &track);
140 void setBlendTrack(
void *wp,
const std::vector<std::vector<double>> &track);
141 void setMoveTrack(
void *wp,
const std::vector<std::vector<double>> &track,
142 const std::vector<double> &color);
144 const std::vector<double> &color);
154 const std::vector<double> &pose);
184 const std::vector<std::vector<double>> &points,
185 const std::vector<double> &color);
186 void addLine(
const std::string &name,
int link_num,
187 const std::vector<double> &pose,
188 const std::vector<std::vector<double>> &points,
189 const std::vector<double> &color);
217 void addPlane(
const std::string &name,
const std::vector<double> &pose,
218 const std::vector<double> &size,
219 const std::vector<double> &color);
220 void addPlane(
const std::string &name,
int link_num,
221 const std::vector<double> &pose,
222 const std::vector<double> &size,
223 const std::vector<double> &color);
252 void addCube(
const std::string &name,
const std::vector<double> &pose,
253 const std::vector<double> &size,
254 const std::vector<double> &color,
int type = 0);
255 void addCube(
const std::string &name,
int link_num,
256 const std::vector<double> &pose,
257 const std::vector<double> &size,
258 const std::vector<double> &color,
int type = 0);
275 void addCube(
const std::string &name,
const std::vector<double> &pose,
276 float length_min,
float length_max,
float width_min,
277 float width_max,
float height_min,
float height_max,
278 const std::vector<double> &color,
int type = 0);
279 void addCube(
const std::string &name,
int link_num,
280 const std::vector<double> &pose,
float length_min,
281 float length_max,
float width_min,
float width_max,
282 float height_min,
float height_max,
283 const std::vector<double> &color,
int type = 0);
310 int addMesh(
const std::string &name,
int link_num,
311 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...
int clearMeshes(int link_num)
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)
bool hasPointCloud(const std::string &name)
查找制定名称的点云是否存在
int removeMesh(const std::string &name)
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 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)
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)
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)
移除指定线
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)
void setBlendTrack(void *wp, const std::vector< std::vector< double > > &track)