|
AuboStudio SDK
0.6.3
|
|
|
|
|
RenderInterface Provides display option controls related to 3D rendering, including show/hide of ground, robot models, coordinate systems, trajectories and points. More...
#include <render_interface.h>
Public Types | |
| 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 Member Functions | |
| RenderInterface (RenderInterface &f) | |
| RenderInterface (RenderInterface &&f) | |
| virtual | ~RenderInterface () |
| void | setRenderEmbeded (bool is_embeded, QGridLayout *gly) |
| Set the render window to be embedded/removed in the layout gly. | |
| void | setShowOptions (uint16_t options) |
| Set the display mode to control the visibility of various elements. | |
| void | addPointCloud (const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color) |
| Add/modify point cloud. | |
| void | removePointCloud (const std::string &name) |
| Remove the point cloud with the specified name. | |
| bool | hasPointCloud (const std::string &name) |
| Check whether the point cloud with the specified name exists. | |
| void | clearPointCloud () |
| Remove all point clouds. | |
| 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 | removeWaypoint (void *wp) |
| Remove the specified waypoint. | |
| bool | hasWaypoint (void *wp) |
| Check whether the specified waypoint exists. | |
| void | clearWaypoints () |
| Remove all waypoints. | |
| void | setMoveTrack (void *wp, const std::vector< std::vector< double > > &track) |
| Add/modify the move track for the specified waypoint. | |
| 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) |
| Add/modify coordinate axis. | |
| void | removeCoordinate (const std::string &name) |
| Remove the specified coordinate axis. | |
| bool | hasCoordinate (const std::string &name) |
| Check whether the specified coordinate axis exists. | |
| void | addLine (const std::string &name, const std::vector< std::vector< double > > &points, const std::vector< double > &color) |
| Add/modify line. | |
| 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) |
| Remove the specified line. | |
| void | clearLines () |
| Remove all lines. | |
| 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 | 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) |
| Remove the specified plane. | |
| void | clearPlanes () |
| Remove all planes. | |
| 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 | 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) |
| Add/modify cube with size ranges. | |
| 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) |
| Remove the specified cube. | |
| void | clearCubes () |
| Remove all cubes. | |
| 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) |
| removeMesh | |
| int | clearMeshes (int link_num) |
| clearMeshes | |
Private Member Functions | |
| RenderInterface () | |
Private Attributes | |
| void * | d_ { nullptr } |
Friends | |
| class | DataSwitch |
RenderInterface Provides display option controls related to 3D rendering, including show/hide of ground, robot models, coordinate systems, trajectories and points.
Definition at line 28 of file render_interface.h.
| enum arcs::aubo_scope::RenderInterface::ShowOptions : uint16_t |
| Enumerator | |
|---|---|
| None | |
| Ground | |
| TargetRobot | |
| RealRobot | |
| Coordinate | |
| Track | |
| Point | |
| View | |
| Obstacle | |
| SafetyPlane | |
| ToolPosition | |
| PointCloud | |
| All | |
Definition at line 31 of file render_interface.h.
| arcs::aubo_scope::RenderInterface::RenderInterface | ( | RenderInterface & | f | ) |
References RenderInterface().
Referenced by RenderInterface(), and RenderInterface().


| arcs::aubo_scope::RenderInterface::RenderInterface | ( | RenderInterface && | f | ) |
|
virtual |
|
private |
| void arcs::aubo_scope::RenderInterface::addCoordinate | ( | const std::string & | name, |
| const std::vector< double > & | pose ) |
Add/modify coordinate axis.
| name | coordinate name |
| pose | pose x,y,z,rx,ry,rz |
| 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 ) |
Add/modify cube.
| name | cube name |
| link_num | -1: TCP; 0: base; 1~6: joints; |
| pose | position |
| size | cube size (length, width, height) |
| color | cube color {r, g, b, a}, range 0.0~1.0 |
| type | cube rendering type: 0 for 6 planes, 1 for wireframe |
| 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 ) |
Add/modify cube with size ranges.
| name | cube name |
| pose | position |
| length_min | |
| length_max | |
| width_min | |
| width_max | |
| height_min | |
| height_max | |
| color | cube color {r, g, b, a}, range 0.0~1.0 |
| type | cube rendering type: 0 for 6 planes, 1 for wireframe |
| 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
| name | |
| link_num | |
| pose | |
| size | |
| color | |
| type |
| 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 ) |
addCube
| name | |
| link_num | |
| pose | |
| length_min | |
| length_max | |
| width_min | |
| width_max | |
| height_min | |
| height_max | |
| color | |
| type |
| void arcs::aubo_scope::RenderInterface::addLine | ( | const std::string & | name, |
| const std::vector< std::vector< double > > & | points, | ||
| const std::vector< double > & | color ) |
Add/modify line.
| name | line name |
| link_num | -1: TCP; 0: base; 1~6: joints; |
| pose | reference coordinate system for points, default 6 zeros |
| points | point collection |
| color | line color {r, g, b, a}, range 0.0~1.0 |
| 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 ) |
addLine
| name | |
| link_num | |
| pose | |
| points | |
| color |
| 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_path | 3ds 文件绝对路径 |
| pose | 模型文件安装位置 {x, y, z, rx, ry, rz} |
| 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 ) |
Add/modify plane.
| name | plane name |
| link_num | -1: TCP; 0: base; 1~6: joints; |
| pose | position |
| size | plane size (length, width) |
| color | color {r, g, b, a}, range 0.0~1.0 |
| 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 ) |
addPlane
| name | |
| link_num | |
| pose | |
| size | |
| color |
| void arcs::aubo_scope::RenderInterface::addPointCloud | ( | const std::string & | name, |
| const std::vector< std::vector< double > > & | points, | ||
| const std::vector< double > & | color ) |
Add/modify point cloud.
| name | point cloud name |
| points | point collection |
| color | point cloud color rgba |
| 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 ) |
Add/modify waypoint.
| wp | the unique object representing the waypoint |
| pose | waypoint pose x,y,z,rx,ry,rz |
| color | waypoint color {r, g, b, a}, range 0.0~1.0 |
| axis_visible | whether to show pose direction arrows on the waypoint |
| true | success |
| false | failure |
| void arcs::aubo_scope::RenderInterface::clearCubes | ( | ) |
Remove all cubes.
| void arcs::aubo_scope::RenderInterface::clearLines | ( | ) |
Remove all lines.
| int arcs::aubo_scope::RenderInterface::clearMeshes | ( | int | link_num | ) |
clearMeshes
| link_num |
| void arcs::aubo_scope::RenderInterface::clearPlanes | ( | ) |
Remove all planes.
| void arcs::aubo_scope::RenderInterface::clearPointCloud | ( | ) |
Remove all point clouds.
| void arcs::aubo_scope::RenderInterface::clearWaypoints | ( | ) |
Remove all waypoints.
| std::vector< std::string > arcs::aubo_scope::RenderInterface::getMeshes | ( | int | link_num | ) |
| bool arcs::aubo_scope::RenderInterface::hasCoordinate | ( | const std::string & | name | ) |
Check whether the specified coordinate axis exists.
| name | coordinate name |
| true | exists |
| false | does not exist |
| bool arcs::aubo_scope::RenderInterface::hasPointCloud | ( | const std::string & | name | ) |
Check whether the point cloud with the specified name exists.
| name | point cloud name |
| true | exists |
| false | does not exist |
| bool arcs::aubo_scope::RenderInterface::hasWaypoint | ( | void * | wp | ) |
Check whether the specified waypoint exists.
| wp | the unique object representing the waypoint |
| true | exists |
| false | does not exist |
| void arcs::aubo_scope::RenderInterface::removeCoordinate | ( | const std::string & | name | ) |
Remove the specified coordinate axis.
| name | coordinate name |
| void arcs::aubo_scope::RenderInterface::removeCube | ( | const std::string & | name | ) |
Remove the specified cube.
| name | cube name |
| void arcs::aubo_scope::RenderInterface::removeLine | ( | const std::string & | name | ) |
Remove the specified line.
| name | line name |
| int arcs::aubo_scope::RenderInterface::removeMesh | ( | const std::string & | name | ) |
removeMesh
| name |
| void arcs::aubo_scope::RenderInterface::removePlane | ( | const std::string & | name | ) |
Remove the specified plane.
| name | plane name |
| void arcs::aubo_scope::RenderInterface::removePointCloud | ( | const std::string & | name | ) |
Remove the point cloud with the specified name.
| name | point cloud name |
| void arcs::aubo_scope::RenderInterface::removeWaypoint | ( | void * | wp | ) |
Remove the specified waypoint.
| wp | the unique object representing the waypoint |
| void arcs::aubo_scope::RenderInterface::setBlendTrack | ( | void * | wp, |
| const std::vector< std::vector< double > > & | track ) |
setBlendTrack
| wp | |
| track |
| void arcs::aubo_scope::RenderInterface::setBlendTrack | ( | void * | wp, |
| const std::vector< std::vector< double > > & | track, | ||
| const std::vector< double > & | color ) |
setBlendTrack
| wp | |
| track | |
| color |
| void arcs::aubo_scope::RenderInterface::setMoveTrack | ( | void * | wp, |
| const std::vector< std::vector< double > > & | track ) |
Add/modify the move track for the specified waypoint.
| wp | the unique object representing the waypoint |
| track | waypoint pose collection x,y,z,rx,ry,rz |
| void arcs::aubo_scope::RenderInterface::setMoveTrack | ( | void * | wp, |
| const std::vector< std::vector< double > > & | track, | ||
| const std::vector< double > & | color ) |
setMoveTrack
| wp | |
| track | |
| color |
| void arcs::aubo_scope::RenderInterface::setRenderEmbeded | ( | bool | is_embeded, |
| QGridLayout * | gly ) |
Set the render window to be embedded/removed in the layout gly.
| is_embeded | whether to embed |
| gly | the layout |
| void arcs::aubo_scope::RenderInterface::setShowOptions | ( | uint16_t | options | ) |
Set the display mode to control the visibility of various elements.
| options | option value, see ShowOptions enum for details |
|
friend |
|
private |
Definition at line 684 of file render_interface.h.