4#ifndef AUBO_SDK_ROBOT_CONFIG_H
5#define AUBO_SDK_ROBOT_CONFIG_H
8#include <unordered_map>
10#include <aubo/global_config.h>
14namespace common_interface {
1355 std::unordered_map<std::string, std::vector<double>>
1387 const std::unordered_map<std::string, std::vector<double>> ¶m);
2782 const std::vector<double> &inertial);
2853 const std::vector<double> &aom,
2854 const std::vector<double> &inertia);
3527 const std::vector<double> &inertia);
double getDefaultJointSpeed()
Get the default joint speed, in rad/s.
double getDefaultJointAcc()
Get the default joint acceleration, in rad/s^2.
int setHandguidDamp(const std::vector< double > &damp)
Set handguiding damping.
int getSafeguardStopSource()
Get the complete safeguard stop source as a bitmask.
std::string getHardwareCustomParameters(const std::string ¶m)
Get custom parameters from the hardware abstraction layer.
bool hasBaseForceSensor()
Whether a base force sensor is installed.
std::string getName()
Get the robot's name.
int setBaseForceOffset(const std::vector< double > &force_offset)
Set the base force/torque offset.
int setKinematicsCompensate(const std::unordered_map< std::string, std::vector< double > > ¶m)
Set standard DH compensation to the robot.
int selectTcpForceSensor(const std::string &name)
Set the TCP force sensor.
std::vector< double > getTcpForceSensorPose()
Get the sensor mounting pose.
std::vector< double > getJointMinPositions()
Get the joint minimum positions (physical limits).
std::vector< double > getLimitJointMaxPositions()
Get the joint maximum positions (currently used limit values).
int setWorkObjectData(const WObjectData &wobj)
Set work object data.
std::unordered_map< std::string, std::vector< double > > getKinematicsParam(bool real)
Get the robot's DH parameters: alpha, a, d, theta, beta.
std::vector< double > getJointMaxSpeeds()
Get the joint maximum speeds (physical limits).
int setPersistentParameters(const std::string ¶m)
Set parameters to be saved to the interface board base.
double getLimitTcpMaxSpeed()
Get the TCP maximum speed (currently used limit value).
int setCollisionLevel(int level)
Set the collision sensitivity level.
int getRobotEmergencyStopSource()
Get the complete robot emergency stop source as a bitmask.
int setHardwareCustomParameters(const std::string ¶m)
Set custom parameters for the hardware abstraction layer.
uint32_t calcSafetyParametersCheckSum(const RobotSafetyParameterRange ¶meters)
Calculate the CRC32 checksum of safety parameters.
std::vector< double > getLimitJointMinPositions()
Get the joint minimum positions (currently used limit values).
int setTcpForceOffset(const std::vector< double > &force_offset)
Set the TCP force/torque offset.
int attachWeldingGun(double m, const std::vector< double > &cog, const std::vector< double > &inertia)
std::vector< std::string > getTcpForceSensorNames()
Get the names of available TCP force sensors.
std::vector< double > getHomePosition()
Get the robot's home position.
double getDefaultToolSpeed()
Get the default tool speed, in m/s.
Payload getPayload()
Get the payload.
std::string getRobotSubType()
Get the robot sub-type code.
int getCollisionLevel()
Get the collision sensitivity level.
std::vector< double > getTcpForceOffset()
Get the TCP force/torque offset.
std::vector< double > getCollisionThreshold()
Get collision threshold.
std::vector< double > getFreedriveDamp()
Get freedrive damping.
std::vector< double > getJointMaxPositions()
Get the joint maximum positions (physical limits).
int setTcpForceSensorPose(const std::vector< double > &sensor_pose)
Set the sensor mounting pose.
std::unordered_map< std::string, std::vector< double > > getKinematicsCompensate(double ref_temperature)
Get DH parameter compensation values (alpha, a, d, theta, beta) at the specified temperature.
bool toolSpaceInRange(const std::vector< double > &pose)
Whether the end-effector pose is within the safety range.
int setGravity(const std::vector< double > &gravity)
Set the robot installation attitude (gravity vector).
SafeguedStopType getSafeguardStopType()
Get the current safeguard stop type.
int setMountingPose(const std::vector< double > &pose)
Set the mounting pose (robot base coordinate system relative to world coordinate system) world->base
std::vector< double > getBaseForceOffset()
Get the base force/torque offset.
std::vector< double > getTcpOffset()
Get the current TCP offset.
int getDof()
Get the robot's degrees of freedom (from the hardware abstraction layer).
int getCollisionStopType()
Get the collision stop type.
int setHomePosition(const std::vector< double > &positions)
Set the robot's home position.
double getCycletime()
Get the robot's servo control cycle time (from the hardware abstraction layer).
std::string getControlBoxType()
Get the control box type code.
std::vector< std::string > getBaseForceSensorNames()
Get the names of available base force sensors.
double getSlowDownFraction(int level)
Get the speed reduction ratio for the preset slow-down mode.
std::vector< double > getMountingPose()
Get the mounting pose (robot base coordinate system relative to world coordinate system)
std::vector< double > getLimitJointMaxAccelerations()
Get the joint maximum accelerations (currently used limit values).
std::vector< double > getTcpMaxAccelerations()
Get the TCP maximum acceleration (physical limits).
std::tuple< std::string, double > getFirmwareUpdateProcess()
Get the current firmware upgrade process.
int setRobotZero()
Set the robot joint zero position.
int setSlowDownFraction(int level, double fraction)
Set the speed reduction ratio for the preset slow-down mode.
int firmwareUpdate(const std::string &fw)
Initiate a firmware upgrade request.
std::string getSelectedTcpForceSensorName()
Get the name of the selected TCP force sensor.
std::vector< double > getLimitJointMaxSpeeds()
Get the joint maximum speeds (currently used limit values).
double getDefaultToolAcc()
Get the default tool acceleration, in m/s^2.
std::vector< double > getGravity()
Get the robot's installation attitude (gravity vector).
int selectBaseForceSensor(const std::string &name)
Set the base force sensor.
std::string getRobotType()
Get the robot type code.
int confirmSafetyParameters(const RobotSafetyParameterRange ¶meters)
Initiate a request to confirm safety configuration parameters: Write safety configuration parameters ...
bool hasTcpForceSensor()
Whether a TCP force sensor is installed.
std::vector< double > getJointMaxAccelerations()
Get the joint maximum accelerations (physical limits).
int setCollisionStopType(int type)
Set the collision stop type.
int setPayload(double m, const std::vector< double > &cog, const std::vector< double > &aom, const std::vector< double > &inertia)
Set the payload.
uint32_t getSafetyParametersCheckSum()
Get the safety parameter checksum CRC32.
int setToolInertial(double m, const std::vector< double > &com, const std::vector< double > &inertial)
Set tool mass, center of mass, and inertia.
int setFreedriveDamp(const std::vector< double > &damp)
Set freedrive damping.
std::vector< double > getTcpMaxSpeeds()
Get the TCP maximum speed (physical limits).
int setCollisionThreshold(const std::vector< double > &threshold)
Enable optimized collision force.
std::string getRobotBaseParent()
int setTcpOffset(const std::vector< double > &offset)
Set the current TCP offset.
std::vector< double > getHandguidDamp()
Get handguiding damping.
int attachRobotBaseTo(const std::string &frame)
Attach the robot base to a coordinate frame.
std::shared_ptr< RobotConfig > RobotConfigPtr
std::tuple< double, std::vector< double >, std::vector< double >, std::vector< double > > Payload