gusimplewhiteboard
wb_hal_armtarget Struct Referenceabstract

HalArmTarget c struct. More...

#include <wb_hal_armtarget.h>

Inheritance diagram for wb_hal_armtarget:
Collaboration diagram for wb_hal_armtarget:

Public Member Functions

 PROPERTY (int32_t, target_movement_time) PROPERTY(int16_t
 Control Message: The elapsed time, in mSec, in which the movement should be completed. More...
 
target_shoulderpitch PROPERTY (int16_t, target_shoulderroll) PROPERTY(int16_t
 target shoulder roll angle angle in 10ths of degrees More...
 
target_shoulderpitch target_elbowroll PROPERTY (int16_t, target_elbowyaw) PROPERTY(int16_t
 target elbow yaw angle in 10ths of degrees More...
 
target_shoulderpitch target_elbowroll target_wristyaw PROPERTY (uint8_t, target_arm) PROPERTY(uint8_t
 target arm number This property is used strictly for accounting purposes when the struct is stored within an array and the robot has numerous arms. More...
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand PROPERTY (uint8_t, target_shoulderpitchstiffness) PROPERTY(uint8_t
 target shoulder pitch stiffness as a percentage More...
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness PROPERTY (uint8_t, target_elbowrollstiffness) PROPERTY(uint8_t
 target elbow roll stiffness as a percentage More...
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness PROPERTY (uint8_t, target_wristyawstiffness) PROPERTY(uint8_t
 target wrist yaw stiffness as a percentage More...
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness PROPERTY (uint8_t, target_pliability) BIT_PROPERTY(target_shoulderpitch_active) BIT_PROPERTY(target_shoulderroll_active) BIT_PROPERTY(target_elbowroll_active) BIT_PROPERTY(target_elbowyaw_active) BIT_PROPERTY(target_wrist_active) BIT_PROPERTY(target_hand_active) BIT_PROPERTY(target_arm_at_goal) BIT_PROPERTY(target_arm_stop) wb_hal_armtarget(uint8_t arm=0
 target arm's pliability when in Passive Mode When the arm is passive, this value reduces the update frequency, thus making the arm more resistant to external forces. More...
 

Public Attributes

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t shoulderpitch = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t shoulderroll = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t elbowroll = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t elbowyaw = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t wristyaw = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t hand = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t shoulderpitchstiffness = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t shoulderrollstiffness = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t elbowrollstiffness = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t elbowyawstiffness = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t wristyawstiffness = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t handstiffness = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool shoulderpitch_active = true
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool shoulderroll_active = true
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool elbowroll_active = true
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool elbowyaw_active = true
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool wrist_active = true
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool hand_active = true
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t movement_time = INT_MAX
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t uint8_t pliability = 0
 
target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t uint8_t bool arm_at_goal = false
 

Detailed Description

HalArmTarget c struct.

The struct is designed around a single arm, allowing independent control of the NAO's arms.

**** IMPORTANT NOTE: **** This class only provides for movement limit detection. There is no built in collision detection. Care must be taken to ensure the fingers and forearm do not collide with the chest, thigh, or the other forearm.

Definition at line 85 of file wb_hal_armtarget.h.

Member Function Documentation

◆ PROPERTY() [1/8]

target_shoulderpitch target_elbowroll wb_hal_armtarget::PROPERTY ( int16_t  ,
target_elbowyaw   
)

target elbow yaw angle in 10ths of degrees

target wrist yaw angle in 10ths of degrees

◆ PROPERTY() [2/8]

target_shoulderpitch wb_hal_armtarget::PROPERTY ( int16_t  ,
target_shoulderroll   
)

target shoulder roll angle angle in 10ths of degrees

target elbow roll angle in 10ths of degrees

◆ PROPERTY() [3/8]

wb_hal_armtarget::PROPERTY ( int32_t  ,
target_movement_time   
)

Control Message: The elapsed time, in mSec, in which the movement should be completed.

Status Message: Absolute time when the current action will complete. (Thus this is an int32_t.) target shoulder pitch angle in 10ths of degrees

◆ PROPERTY() [4/8]

target_shoulderpitch target_elbowroll target_wristyaw wb_hal_armtarget::PROPERTY ( uint8_t  ,
target_arm   
)

target arm number This property is used strictly for accounting purposes when the struct is stored within an array and the robot has numerous arms.

target hand grasper opening as a percentage 0 gripper will be clasped shut 100 gripper will be fully openned

◆ PROPERTY() [5/8]

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness wb_hal_armtarget::PROPERTY ( uint8_t  ,
target_elbowrollstiffness   
)

target elbow roll stiffness as a percentage

target elbow yaw stiffness as a percentage

◆ PROPERTY() [6/8]

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness wb_hal_armtarget::PROPERTY ( uint8_t  ,
target_pliability   
)
pure virtual

target arm's pliability when in Passive Mode When the arm is passive, this value reduces the update frequency, thus making the arm more resistant to external forces.

Use of values from 0 to 10 is recommended. When set to zero (0), the Arm, when fully extended out, will fall under its own weight. Higher values stiffen the arm and reduce responsiveness, the movement will become stepped. Is the shoulderpitch Active (true[DEFAULT]) or Passive (false) Active : The robot's DCM will prevent movement of the arm from the requested pose in accordance to the joint stiffness. (This is the normal behaviour of the robot.) Passive: Once the requested pose is achieved, the DCM will automatically update the requested pose according to deviations in the joints. The effect of this is that the robot's arm will be susceptible to gravity (and will fall slowly over time) as well as to externally applied forces (allowing it to be manipulated). Is the shoulderroll Active (true[DEFAULT]) or Passive (false) Is the elbowroll Active (true[DEFAULT]) or Passive (false) Is the elbowyaw Active (true[DEFAULT]) or Passive (false) Is the wrist Active (true[DEFAULT]) or Passive (false) Is the hand Active (true[DEFAULT]) or Passive (false) Control Message: Not used Status Message: Naoqiinterface reports that the goal location of all joints has been reached (within specified tolerance). Control Message: Stop the arm at its current location Status Message: Indicates if the last control message issued a STOP command. constructor for the HalArmTarget stuct. This is the data that is placed on the Whiteboard

Parameters
armuint8_t enumeration of the arm
shoulderpitchdesired shoulder pitch
shoulderrolldesired shoulder roll
elbowrolldesired elbow roll
elbowyawdesired elbow yaw
wristyawdesired wrist yaw
handdesired percentage of grasper being openned
shoulderpitchstiffnessdesired stiffness in the shoulder pitch axis
shoulderrollstiffnessdesired stiffness in the shoulder roll axis
elbowrollstiffnessdesired stiffness in the elbow roll axis
elbowyawstiffnessdesired stiffness in the elbow yaw axis
wristyawstiffnessdesired stiffness in the wrist yaw axis
handstiffnessdesired stiffness of the grasper
shoulderpitch_activeis shoulder pitch active
shoulderroll_activeis shoulder roll active
elbowroll_activeis elbow roll active
elbowyaw_activeis elbow yaw active
wrist_activeis wrist yaw active
hand_activeis the hand active
movement_timetime, expressed mSec to complete the movement (Naoqi's way of setting the speed)
pliabilitywhen the arm is passive, this value reduces the update frequency
arm_at_goalare the arm's joints at the goal location (within tolerance) DOES NOT CONSIDER THE Grasper
arm_stopif true : Naoqi Interface will stop the arm at its current pose, New motion commands will have no effect while arm is stopped. false: Arm moves to requested pose.

◆ PROPERTY() [7/8]

target_shoulderpitch target_elbowroll target_wristyaw target_hand wb_hal_armtarget::PROPERTY ( uint8_t  ,
target_shoulderpitchstiffness   
)

target shoulder pitch stiffness as a percentage

target shoulder roll stiffness as a percentage

◆ PROPERTY() [8/8]

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness wb_hal_armtarget::PROPERTY ( uint8_t  ,
target_wristyawstiffness   
)

target wrist yaw stiffness as a percentage

target hand grasper stiffness as a percentage

Member Data Documentation

◆ arm_at_goal

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t uint8_t bool wb_hal_armtarget::arm_at_goal = false

Definition at line 266 of file wb_hal_armtarget.h.

◆ elbowroll

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t wb_hal_armtarget::elbowroll = 0

◆ elbowroll_active

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool wb_hal_armtarget::elbowroll_active = true

Definition at line 260 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ elbowrollstiffness

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t wb_hal_armtarget::elbowrollstiffness = 0

Definition at line 254 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ elbowyaw

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t wb_hal_armtarget::elbowyaw = 0

◆ elbowyaw_active

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool wb_hal_armtarget::elbowyaw_active = true

Definition at line 261 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ elbowyawstiffness

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t wb_hal_armtarget::elbowyawstiffness = 0

Definition at line 255 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ hand

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t wb_hal_armtarget::hand = 0

◆ hand_active

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool wb_hal_armtarget::hand_active = true

Definition at line 263 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ handstiffness

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t wb_hal_armtarget::handstiffness = 0

Definition at line 257 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ movement_time

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t wb_hal_armtarget::movement_time = INT_MAX

Definition at line 264 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ pliability

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t uint8_t wb_hal_armtarget::pliability = 0

Definition at line 265 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ shoulderpitch

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t wb_hal_armtarget::shoulderpitch = 0

◆ shoulderpitch_active

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool wb_hal_armtarget::shoulderpitch_active = true

Definition at line 258 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ shoulderpitchstiffness

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t wb_hal_armtarget::shoulderpitchstiffness = 0

Definition at line 252 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ shoulderroll

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t wb_hal_armtarget::shoulderroll = 0

◆ shoulderroll_active

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool wb_hal_armtarget::shoulderroll_active = true

Definition at line 259 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ shoulderrollstiffness

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t wb_hal_armtarget::shoulderrollstiffness = 0

Definition at line 253 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ wrist_active

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool wb_hal_armtarget::wrist_active = true

Definition at line 262 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().

◆ wristyaw

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t wb_hal_armtarget::wristyaw = 0

◆ wristyawstiffness

target_shoulderpitch target_elbowroll target_wristyaw target_hand target_shoulderrollstiffness target_elbowyawstiffness target_handstiffness int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t wb_hal_armtarget::wristyawstiffness = 0

Definition at line 256 of file wb_hal_armtarget.h.

Referenced by guWhiteboard::HalArmTarget::HalArmTarget().


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