gusimplewhiteboard
wb_hal_legtarget Struct Referenceabstract

HalLegTarget c struct. More...

#include <wb_hal_legtarget.h>

Inheritance diagram for wb_hal_legtarget:
Collaboration diagram for wb_hal_legtarget:

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_hipyawpitch PROPERTY (int16_t, target_hiproll) PROPERTY(int16_t
 target hip roll angle angle in 10ths of degrees More...
 
target_hipyawpitch target_hippitch PROPERTY (int16_t, target_kneepitch) PROPERTY(int16_t
 target knee pitch angle in 10ths of degrees More...
 
target_hipyawpitch target_hippitch target_anklepitch PROPERTY (int16_t, target_ankleroll) PROPERTY(uint8_t
 target ankle roll angle in 10ths of degrees More...
 
target_hipyawpitch target_hippitch target_anklepitch target_leg PROPERTY (uint8_t, target_hipyawpitchstiffness) PROPERTY(uint8_t
 target hip yaw pitch stiffness as a percentage More...
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness PROPERTY (uint8_t, target_hippitchstiffness) PROPERTY(uint8_t
 target hip pitch stiffness as a percentage More...
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness PROPERTY (uint8_t, target_anklepitchstiffness) PROPERTY(uint8_t
 target ankle pitch stiffness as a percentage More...
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness PROPERTY (uint8_t, target_pliability) BIT_PROPERTY(target_hipyawpitch_active) BIT_PROPERTY(target_hiproll_active) BIT_PROPERTY(target_hippitch_active) BIT_PROPERTY(target_kneepitch_active) BIT_PROPERTY(target_anklepitch_active) BIT_PROPERTY(target_ankleroll_active) BIT_PROPERTY(target_leg_at_goal) BIT_PROPERTY(target_leg_stop) wb_hal_legtarget(uint8_t leg=0
 target leg's pliability when in Passive Mode When the leg is passive, this value reduces the update frequency, thus making the leg more resistant to external forces. More...
 

Public Attributes

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t hipyawpitch = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t hiproll = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t hippitch = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t kneepitch = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t anklepitch = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t ankleroll = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t hipyawpitchstiffness = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t hiprollstiffness = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t hippitchstiffness = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t kneepitchstiffness = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t anklepitchstiffness = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t anklerollstiffness = 0
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool hipyawpitch_active = true
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool hiproll_active = true
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool hippitch_active = true
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool kneepitch_active = true
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool anklepitch_active = true
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool ankleroll_active = true
 
target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_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_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_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_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t uint8_t bool leg_at_goal = false
 

Detailed Description

HalLegTarget c struct.

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

**** IMPORTANT NOTE: **** This class only provides for movement limit detection. There is no built in collision detection. Care must be taken to ensure the legs do not collide with other parts of the robot's body.

Definition at line 89 of file wb_hal_legtarget.h.

Member Function Documentation

◆ PROPERTY() [1/8]

target_hipyawpitch target_hippitch target_anklepitch wb_hal_legtarget::PROPERTY ( int16_t  ,
target_ankleroll   
)

target ankle roll angle in 10ths of degrees

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

◆ PROPERTY() [2/8]

target_hipyawpitch wb_hal_legtarget::PROPERTY ( int16_t  ,
target_hiproll   
)

target hip roll angle angle in 10ths of degrees

target hip pitch angle in 10ths of degrees

◆ PROPERTY() [3/8]

target_hipyawpitch target_hippitch wb_hal_legtarget::PROPERTY ( int16_t  ,
target_kneepitch   
)

target knee pitch angle in 10ths of degrees

target ankle pitch angle in 10ths of degrees

◆ PROPERTY() [4/8]

wb_hal_legtarget::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 hip yaw pitch angle in 10ths of degrees

◆ PROPERTY() [5/8]

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness wb_hal_legtarget::PROPERTY ( uint8_t  ,
target_anklepitchstiffness   
)

target ankle pitch stiffness as a percentage

target ankle roll stiffness as a percentage

◆ PROPERTY() [6/8]

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness wb_hal_legtarget::PROPERTY ( uint8_t  ,
target_hippitchstiffness   
)

target hip pitch stiffness as a percentage

target knee pitch stiffness as a percentage

◆ PROPERTY() [7/8]

target_hipyawpitch target_hippitch target_anklepitch target_leg wb_hal_legtarget::PROPERTY ( uint8_t  ,
target_hipyawpitchstiffness   
)

target hip yaw pitch stiffness as a percentage

target hip roll stiffness as a percentage

◆ PROPERTY() [8/8]

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness wb_hal_legtarget::PROPERTY ( uint8_t  ,
target_pliability   
)
pure virtual

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

Use of values from 0 to 10 is recommended. A value of zero (0), allows the quickest reponse to external forces (e.g. gravity). Higher values stiffen the leg and reduce responsiveness, the movement will become stepped. HOWEVER, the robot will fall under its own weight unless active mode is re-engaged. Is the hipyawpitch Active (true[DEFAULT]) or Passive (false) Active : The robot's DCM will prevent movement of the hip 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 legs 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 hip roll Active (true[DEFAULT]) or Passive (false) Is the hip pitch Active (true[DEFAULT]) or Passive (false) Is the knee pitch Active (true[DEFAULT]) or Passive (false) Is the ankle pitch Active (true[DEFAULT]) or Passive (false) Is the ankle roll Active (true[DEFAULT]) or Passive (false) Control Message: Not used Status Message: Naoqiinterface reports that the goal location of all joints have been reached (within specified tolerance). Control Message: Stop the leg at its current location Status Message: Indicates if the last control message issued a STOP command. constructor for the HalLegTarget stuct. This is the data that is placed on the Whiteboard

Parameters
leguint8_t enumeration of the leg
hipyawpitchdesired hipyawpitch
hiprolldesired hip roll
hippitchdesired hip pitch
kneepitchdesired knee pitch
anklepitchdesired ankle pitch
anklerolldesired ankle roll
hipyawpitchstiffnessdesired stiffness in the hipyawpitch joint
hiprollstiffnessdesired stiffness in the hiproll joint
hippitchstiffnessdesired stiffness in the hippitch joint
kneepitchstiffnessdesired stiffness in the kneepitch joint
anklepitchstiffnessdesired stiffness in the anklepitch joint
anklerollstiffnessdesired stiffness of the ankleroll joint
hipyawpitch_activeis hip yaw pitch active
hiproll_activeis hip roll active
hippitch_activeis hip pitch active
kneepitch_activeis knee pitch active
anklepitch_activeis ankle pitch active
ankleroll_activeis ankle roll active
movement_timetime, expressed mSec to complete the movement (Naoqi's way of setting the speed)
pliabilitywhen the leg is passive, this value reduces the update frequency
leg_at_goalare the leg's joints at the goal location (within tolerance)
leg_stopif true : Naoqi Interface will stop the leg at its current pose, New motion commands will have no effect while leg is stopped. false: Leg moves to requested pose.

Member Data Documentation

◆ anklepitch

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t wb_hal_legtarget::anklepitch = 0

◆ anklepitch_active

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool wb_hal_legtarget::anklepitch_active = true

Definition at line 263 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ anklepitchstiffness

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t wb_hal_legtarget::anklepitchstiffness = 0

Definition at line 257 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ ankleroll

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t wb_hal_legtarget::ankleroll = 0

◆ ankleroll_active

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool wb_hal_legtarget::ankleroll_active = true

Definition at line 264 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ anklerollstiffness

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t wb_hal_legtarget::anklerollstiffness = 0

Definition at line 258 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ hippitch

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t wb_hal_legtarget::hippitch = 0

◆ hippitch_active

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool wb_hal_legtarget::hippitch_active = true

Definition at line 261 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ hippitchstiffness

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t wb_hal_legtarget::hippitchstiffness = 0

Definition at line 255 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ hiproll

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t wb_hal_legtarget::hiproll = 0

◆ hiproll_active

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool wb_hal_legtarget::hiproll_active = true

Definition at line 260 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ hiprollstiffness

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t wb_hal_legtarget::hiprollstiffness = 0

Definition at line 254 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ hipyawpitch

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t wb_hal_legtarget::hipyawpitch = 0

◆ hipyawpitch_active

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool wb_hal_legtarget::hipyawpitch_active = true

Definition at line 259 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ hipyawpitchstiffness

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t wb_hal_legtarget::hipyawpitchstiffness = 0

Definition at line 253 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ kneepitch

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t wb_hal_legtarget::kneepitch = 0

◆ kneepitch_active

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool wb_hal_legtarget::kneepitch_active = true

Definition at line 262 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ kneepitchstiffness

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t wb_hal_legtarget::kneepitchstiffness = 0

Definition at line 256 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ leg_at_goal

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_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_legtarget::leg_at_goal = false

Definition at line 267 of file wb_hal_legtarget.h.

◆ movement_time

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_t uint8_t uint8_t uint8_t uint8_t uint8_t uint8_t bool bool bool bool bool bool int32_t wb_hal_legtarget::movement_time = INT_MAX

Definition at line 265 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().

◆ pliability

target_hipyawpitch target_hippitch target_anklepitch target_leg target_hiprollstiffness target_kneepitchstiffness target_anklerollstiffness int16_t int16_t int16_t int16_t int16_t int16_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_legtarget::pliability = 0

Definition at line 266 of file wb_hal_legtarget.h.

Referenced by guWhiteboard::HalLegTarget::HalLegTarget().


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