AuboStudio SDK  0.6.3
arcs::aubo_scope::RenderInterface类 参考

#include <render_interface.h>

Public 类型

enum  ShowOptions : uint16_t {
  None = 0 , Ground = 0x01 , TargetRobot = 0x02 , RealRobot = 0x04 ,
  Coordinate = 0x08 , Track = 0x10 , Point = 0x20 , View = 0x40 ,
  Obstacle = 0x80 , SafetyPlane = 0x0100 , ToolPosition = 0x0200 , PointCloud = 0x0400 ,
  All = 0xFFFF
}

Public 成员函数

 RenderInterface (RenderInterface &f)
 RenderInterface (RenderInterface &&f)
virtual ~RenderInterface ()
void setRenderEmbeded (bool is_embeded, QGridLayout *gly)
 设置 Render 窗口嵌入/移除(isEmbeded) 布局 gly 中
void setShowOptions (uint16_t options)
 设置显示模式,控制各种元素的显隐
void addPointCloud (const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color)
 添加/修改点云
void removePointCloud (const std::string &name)
 移除指定名称的点云
bool hasPointCloud (const std::string &name)
 查找制定名称的点云是否存在
void clearPointCloud ()
 移除所有的点云
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 removeWaypoint (void *wp)
 移除指定路点
bool hasWaypoint (void *wp)
 查找指定路点是否存在
void clearWaypoints ()
 移除所有的路点
void setMoveTrack (void *wp, const std::vector< std::vector< double > > &track)
 添加/修改指定路点的交融轨迹
void setBlendTrack (void *wp, const std::vector< std::vector< double > > &track)
void setMoveTrack (void *wp, const std::vector< std::vector< double > > &track, const std::vector< double > &color)
void setBlendTrack (void *wp, const std::vector< std::vector< double > > &track, const std::vector< double > &color)
void addCoordinate (const std::string &name, const std::vector< double > &pose)
 添加/修改坐标轴
void removeCoordinate (const std::string &name)
 移除指定坐标轴
bool hasCoordinate (const std::string &name)
 查找指定坐标轴是否存在
void addLine (const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color)
 添加/修改线
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 removeLine (const std::string &name)
 移除指定线
void clearLines ()
 移除所有的线
void addPlane (const std::string &name, const std::vector< double > &pose, const std::vector< double > &size, const std::vector< double > &color)
 添加/修改平面
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 removePlane (const std::string &name)
 移除指定平面
void clearPlanes ()
 移除所有的平面
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 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 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 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 removeCube (const std::string &name)
 移除指定立方体
void clearCubes ()
 移除所有的立方体
int addMesh (const std::string &name, int link_num, const std::string &model_path, const std::vector< double > &pose)
 addMesh 添加任意模型文件
std::vector< std::string > getMeshes (int link_num)
 getMeshes 获取关节 link_num 的外设模型名字
int removeMesh (const std::string &name)
int clearMeshes (int link_num)

Private 成员函数

 RenderInterface ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

在文件 render_interface.h14 行定义.

成员枚举类型说明

◆ ShowOptions

枚举值
None 
Ground 
TargetRobot 
RealRobot 
Coordinate 
Track 
Point 
View 
Obstacle 
SafetyPlane 
ToolPosition 
PointCloud 
All 

在文件 render_interface.h17 行定义.

构造及析构函数说明

◆ RenderInterface() [1/3]

arcs::aubo_scope::RenderInterface::RenderInterface ( RenderInterface & f)

引用了 RenderInterface().

被这些函数引用 RenderInterface() , 以及 RenderInterface().

函数调用图:
这是这个函数的调用关系图:

◆ RenderInterface() [2/3]

arcs::aubo_scope::RenderInterface::RenderInterface ( RenderInterface && f)

引用了 RenderInterface().

函数调用图:

◆ ~RenderInterface()

virtual arcs::aubo_scope::RenderInterface::~RenderInterface ( )
virtual

◆ RenderInterface() [3/3]

arcs::aubo_scope::RenderInterface::RenderInterface ( )
private

成员函数说明

◆ addCoordinate()

void arcs::aubo_scope::RenderInterface::addCoordinate ( const std::string & name,
const std::vector< double > & pose )

添加/修改坐标轴

参数
name坐标轴名称
pose位姿 x,y,z,rx,ry,rz
返回值

◆ addCube() [1/4]

void arcs::aubo_scope::RenderInterface::addCube ( const std::string & name,
const std::vector< double > & pose,
const std::vector< double > & size,
const std::vector< double > & color,
int type = 0 )

添加/修改立方体

参数
name立方体名称
link_num-1: TCP; 0: 底座; 1~6: 关节;
pose位置
size立方体大小(长,宽,高)
color立方体颜色 {r, g, b, a}, 范围是 0.0~1.0
type立方体绘制类型 0 代表画 6 个平面,1 代表只画边框线
返回值

◆ addCube() [2/4]

void arcs::aubo_scope::RenderInterface::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 )

添加/修改立方体

参数
name立方体名称
pose位置
length_min
length_max
width_min
width_max
height_min
height_max
color立方体颜色 {r, g, b, a}, 范围是 0.0~1.0
type立方体绘制类型 0 代表画 6 个平面,1 代表只画边框线
返回值

◆ addCube() [3/4]

void arcs::aubo_scope::RenderInterface::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() [4/4]

void arcs::aubo_scope::RenderInterface::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 )

◆ addLine() [1/2]

void arcs::aubo_scope::RenderInterface::addLine ( const std::string & name,
const std::vector< std::vector< double > > & points,
const std::vector< double > & color )

添加/修改线

参数
name线名称
link_num-1: TCP; 0: 底座; 1~6: 关节;
pose点的参考坐标系, 默认 6 个 0
points点集合
color线颜色 {r, g, b, a}, 范围是 0.0~1.0
返回值

◆ addLine() [2/2]

void arcs::aubo_scope::RenderInterface::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 )

◆ addMesh()

int arcs::aubo_scope::RenderInterface::addMesh ( const std::string & name,
int link_num,
const std::string & model_path,
const std::vector< double > & pose )

addMesh 添加任意模型文件

参数
name唯一标识
link_num-1: TCP; 0: 底座; 1~6: 关节;
model_path3ds 文件绝对路径
pose模型文件安装位置 {x, y, z, rx, ry, rz}
返回
0: 成功; 其他失败

◆ addPlane() [1/2]

void arcs::aubo_scope::RenderInterface::addPlane ( const std::string & name,
const std::vector< double > & pose,
const std::vector< double > & size,
const std::vector< double > & color )

添加/修改平面

参数
name平面名称
link_num-1: TCP; 0: 底座; 1~6: 关节;
pose位置
size平面大小(长,宽)
color线颜色 {r, g, b, a}, 范围是 0.0~1.0
返回值

◆ addPlane() [2/2]

void arcs::aubo_scope::RenderInterface::addPlane ( const std::string & name,
int link_num,
const std::vector< double > & pose,
const std::vector< double > & size,
const std::vector< double > & color )

◆ addPointCloud()

void arcs::aubo_scope::RenderInterface::addPointCloud ( const std::string & name,
const std::vector< std::vector< double > > & points,
const std::vector< double > & color )

添加/修改点云

参数
name点云名称
points点集合
color点云颜色 rgba
返回

◆ addWaypoint()

bool arcs::aubo_scope::RenderInterface::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 )

添加/修改路点

参数
wp代表路点的唯一对象
pose路点位姿 x,y,z,rx,ry,rz
color路点颜色 {r, g, b, a}, 范围是 0.0~1.0
axis_visible路点上是否显示位姿方向箭头
返回值
true成功
false失败

◆ clearCubes()

void arcs::aubo_scope::RenderInterface::clearCubes ( )

移除所有的立方体

参数
返回值

◆ clearLines()

void arcs::aubo_scope::RenderInterface::clearLines ( )

移除所有的线

参数
返回值

◆ clearMeshes()

int arcs::aubo_scope::RenderInterface::clearMeshes ( int link_num)

◆ clearPlanes()

void arcs::aubo_scope::RenderInterface::clearPlanes ( )

移除所有的平面

参数
返回值

◆ clearPointCloud()

void arcs::aubo_scope::RenderInterface::clearPointCloud ( )

移除所有的点云

参数
返回值

◆ clearWaypoints()

void arcs::aubo_scope::RenderInterface::clearWaypoints ( )

移除所有的路点

参数
返回值

◆ getMeshes()

std::vector< std::string > arcs::aubo_scope::RenderInterface::getMeshes ( int link_num)

getMeshes 获取关节 link_num 的外设模型名字

参数
link_num-1: TCP; 0: 底座; 1~6: 关节;
返回
名字列表

◆ hasCoordinate()

bool arcs::aubo_scope::RenderInterface::hasCoordinate ( const std::string & name)

查找指定坐标轴是否存在

参数
name坐标轴名称
返回值
true存在
false不存在

◆ hasPointCloud()

bool arcs::aubo_scope::RenderInterface::hasPointCloud ( const std::string & name)

查找制定名称的点云是否存在

参数
name点云名称
返回值
true存在
false不存在

◆ hasWaypoint()

bool arcs::aubo_scope::RenderInterface::hasWaypoint ( void * wp)

查找指定路点是否存在

参数
wp代表路点的唯一对象
返回值
true存在
false不存在

◆ removeCoordinate()

void arcs::aubo_scope::RenderInterface::removeCoordinate ( const std::string & name)

移除指定坐标轴

参数
name坐标轴名称
返回值

◆ removeCube()

void arcs::aubo_scope::RenderInterface::removeCube ( const std::string & name)

移除指定立方体

参数
name立方体名称
返回值

◆ removeLine()

void arcs::aubo_scope::RenderInterface::removeLine ( const std::string & name)

移除指定线

参数
name线名称
返回值

◆ removeMesh()

int arcs::aubo_scope::RenderInterface::removeMesh ( const std::string & name)

◆ removePlane()

void arcs::aubo_scope::RenderInterface::removePlane ( const std::string & name)

移除指定平面

参数
name名称
返回值

◆ removePointCloud()

void arcs::aubo_scope::RenderInterface::removePointCloud ( const std::string & name)

移除指定名称的点云

参数
name点云名称
返回

◆ removeWaypoint()

void arcs::aubo_scope::RenderInterface::removeWaypoint ( void * wp)

移除指定路点

参数
wp代表路点的唯一对象
返回值

◆ setBlendTrack() [1/2]

void arcs::aubo_scope::RenderInterface::setBlendTrack ( void * wp,
const std::vector< std::vector< double > > & track )

◆ setBlendTrack() [2/2]

void arcs::aubo_scope::RenderInterface::setBlendTrack ( void * wp,
const std::vector< std::vector< double > > & track,
const std::vector< double > & color )

◆ setMoveTrack() [1/2]

void arcs::aubo_scope::RenderInterface::setMoveTrack ( void * wp,
const std::vector< std::vector< double > > & track )

添加/修改指定路点的交融轨迹

参数
wp代表路点的唯一对象
track路点位姿 x,y,z,rx,ry,rz 集合
返回值

◆ setMoveTrack() [2/2]

void arcs::aubo_scope::RenderInterface::setMoveTrack ( void * wp,
const std::vector< std::vector< double > > & track,
const std::vector< double > & color )

◆ setRenderEmbeded()

void arcs::aubo_scope::RenderInterface::setRenderEmbeded ( bool is_embeded,
QGridLayout * gly )

设置 Render 窗口嵌入/移除(isEmbeded) 布局 gly 中

参数
is_embeded是否嵌入
gly布局
返回

◆ setShowOptions()

void arcs::aubo_scope::RenderInterface::setShowOptions ( uint16_t options)

设置显示模式,控制各种元素的显隐

参数
options选项值,详情查看 ShowOptions 枚举
返回

◆ DataSwitch

friend class DataSwitch
friend

在文件 render_interface.h323 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

void* arcs::aubo_scope::RenderInterface::d_ { nullptr }
private

在文件 render_interface.h325 行定义.


该类的文档由以下文件生成: