PDF
AuboStudio SDK  0.6.3
arcs::aubo_scope::WaypointModel Class Reference

WaypointModel Provides methods that returns Waypoints from the current robot installation. More...

#include <waypoint_model.h>

Public Member Functions

 WaypointModel (WaypointModel &f)
 WaypointModel (WaypointModel &&f)
 ~WaypointModel ()
std::vector< WaypointPtr > getWaypoints ()
 Returns the geometric Waypoints of the current installation.
WaypointPtr getByName (const std::string &name)
 Returns the Waypoint by name.
WaypointPtr addWaypoint (const std::string &suggestedName, const std::vector< double > &pose)
 Add a Waypoint to the current AuboScope installation.
WaypointPtr addWaypoint (const std::string &suggestedName, const std::vector< double > &pose, const std::vector< double > &joint, const std::vector< double > &offset)
 Add a Waypoint to the current AuboScope installation with joint angles and offset.
void removeWaypoint (const std::string &name)
 Remove a Waypoint added by this AuboCap from AuboScope.
void renameWaypoint (const std::string &name, const std::string &newName)
 Rename the waypoint in the model by the name.

Private Member Functions

 WaypointModel ()

Private Attributes

void * d_ { nullptr }

Friends

class DataSwitch

Detailed Description

WaypointModel Provides methods that returns Waypoints from the current robot installation.

Definition at line 22 of file waypoint_model.h.

Constructor & Destructor Documentation

◆ WaypointModel() [1/3]

arcs::aubo_scope::WaypointModel::WaypointModel ( WaypointModel & f)

References WaypointModel().

Referenced by WaypointModel(), and WaypointModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WaypointModel() [2/3]

arcs::aubo_scope::WaypointModel::WaypointModel ( WaypointModel && f)

References WaypointModel().

Here is the call graph for this function:

◆ ~WaypointModel()

arcs::aubo_scope::WaypointModel::~WaypointModel ( )

◆ WaypointModel() [3/3]

arcs::aubo_scope::WaypointModel::WaypointModel ( )
private

Member Function Documentation

◆ addWaypoint() [1/2]

WaypointPtr arcs::aubo_scope::WaypointModel::addWaypoint ( const std::string & suggestedName,
const std::vector< double > & pose )

Add a Waypoint to the current AuboScope installation.

This makes it selectable by the end user. The Waypoint is not modifiable by the end user.

Parameters
suggestedNameSuggested name for the Waypoint. Valid names must match regex [a-zA-Z][a-zA-Z0-9_]{0,14} for a total of 15 characters. The final name can be retrieved from the returned Waypoint instance.
poseThe pose of the Waypoint with respect to the robot base.
Returns
The Waypoint created and registered in AuboScope.
Exceptions
WaypointAlreadyAddedExceptionIf a Waypoint has previously been added the same idKey identifier. Use getWaypoint(String) to check if the Waypoint has already been added to the current installation. Use updateWaypoint(String, Pose) to update the Waypoint.
IllegalWaypointNameExceptionIf the suggested name does not match required regex.

◆ addWaypoint() [2/2]

WaypointPtr arcs::aubo_scope::WaypointModel::addWaypoint ( const std::string & suggestedName,
const std::vector< double > & pose,
const std::vector< double > & joint,
const std::vector< double > & offset )

Add a Waypoint to the current AuboScope installation with joint angles and offset.

Parameters
suggestedNameSuggested name for the Waypoint. Valid names must match regex [a-zA-Z][a-zA-Z0-9_]{0,14} for a total of 15 characters. The final name can be retrieved from the returned Waypoint instance.
poseThe pose of the Waypoint with respect to the robot base.
jointThe joint of the Waypoint with respect to the robot base.
offsetThe tcp of the Waypoint with respect to the robot base.
Returns
The Waypoint created and registered in AuboScope.
Exceptions
WaypointAlreadyAddedExceptionIf a Waypoint has previously been added the same idKey identifier. Use getWaypoint(String) to check if the Waypoint has already been added to the current installation. Use updateWaypoint(String, Pose) to update the Waypoint.
IllegalWaypointNameExceptionIf the suggested name does not match required regex.

◆ getByName()

WaypointPtr arcs::aubo_scope::WaypointModel::getByName ( const std::string & name)

Returns the Waypoint by name.

Parameters
namethe name of the Waypoint.
Returns
the Waypoint with the given name.

◆ getWaypoints()

std::vector< WaypointPtr > arcs::aubo_scope::WaypointModel::getWaypoints ( )

Returns the geometric Waypoints of the current installation.

Returns
the geometric Waypoints of the current installation.

◆ removeWaypoint()

void arcs::aubo_scope::WaypointModel::removeWaypoint ( const std::string & name)

Remove a Waypoint added by this AuboCap from AuboScope.

Program nodes using the Waypoint will be become undefined because the Waypoint is no longer resolvable.

Parameters
nameThe key used to add the Waypoint with.
Exceptions
WaypointNotFoundExceptionIf no Waypoint exists with the provided idKey.

◆ renameWaypoint()

void arcs::aubo_scope::WaypointModel::renameWaypoint ( const std::string & name,
const std::string & newName )

Rename the waypoint in the model by the name.

Parameters
namethe original name.
newNamethe new name.

◆ DataSwitch

friend class DataSwitch
friend

Definition at line 169 of file waypoint_model.h.

References DataSwitch.

Referenced by DataSwitch.

Member Data Documentation

◆ d_

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

Definition at line 171 of file waypoint_model.h.


The documentation for this class was generated from the following file: