Public Member Functions | Public Attributes | Private Member Functions | List of all members
acceptance_test_joint_limits.AcceptanceTestJointLimits Class Reference
Inheritance diagram for acceptance_test_joint_limits.AcceptanceTestJointLimits:
Inheritance graph
[legend]

Public Member Functions

def setUp (self)
 
def test_joint_limits_overstepping (self)
 
def test_joint_limits_reaching (self)
 

Public Attributes

 client
 
 home_positions
 
 joint_names
 
 joint_velocity_limits
 

Private Member Functions

def _ask_for_permission (self, test_name)
 
def _check_joint_limits (self)
 
def _current_joint_state_positions (self)
 
def _drive_home (self)
 
def _execute_trajectory (self, positions)
 
def _joint_limit_overstepping_test (self, joint_name)
 
def _joint_limit_reaching_test (self, joint_name)
 

Detailed Description

Test that each joint can be moved exactly to its limits and not further.

Definition at line 47 of file acceptance_test_joint_limits.py.

Member Function Documentation

def acceptance_test_joint_limits.AcceptanceTestJointLimits._ask_for_permission (   self,
  test_name 
)
private

Definition at line 72 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits._check_joint_limits (   self)
private
Check if current joint positions are within the limits.

Definition at line 99 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits._current_joint_state_positions (   self)
private
Return the current joint state positions in the order given by self.joint_names.

Definition at line 80 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits._drive_home (   self)
private
Move the robot to the home position.

Definition at line 112 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits._execute_trajectory (   self,
  positions 
)
private
Execute a single point trajectory given through joint positions (in the order given by self.joint_names). Return true on success and
    false otherwise.

Definition at line 123 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits._joint_limit_overstepping_test (   self,
  joint_name 
)
private
Test if the robot does not overstep the limits

    Test Sequence:
      1. Command a movement to the home position.
      2. Command a movement overstepping the lower limit.
      3. Command a movement overstepping the upper limit.
      4. Command a movement to the home position.

    Expected Results:
      1. Trajectory is executed successfully.
      2. Trajectory execution is aborted and the robot does not overstep the limits.
      3. Trajectory execution is aborted and the robot does not overstep the limits.
      4. Trajectory is executed successfully.

Definition at line 194 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits._joint_limit_reaching_test (   self,
  joint_name 
)
private
Test if the robot can be commanded to move exactly to the limits

    Test Sequence:
      1. Command a movement to the home position.
      2. Command a movement to the lower limit.
      3. Command a movement to the upper limit.
      4. Command a movement to the home position.

    Expected Results:
      1. Trajectory is executed successfully.
      2. Trajectory is executed successfully.
      3. Trajectory is executed successfully.
      4. Trajectory is executed successfully.

Definition at line 162 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits.setUp (   self)
Initialize a client for sending trajectories to the controller.

Definition at line 51 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits.test_joint_limits_overstepping (   self)
Perform all overstepping tests. Before each test ask the user if he wants to skip it.

Definition at line 235 of file acceptance_test_joint_limits.py.

def acceptance_test_joint_limits.AcceptanceTestJointLimits.test_joint_limits_reaching (   self)
Perform all reaching tests. Before each test ask the user if he wants to skip it.

Definition at line 228 of file acceptance_test_joint_limits.py.

Member Data Documentation

acceptance_test_joint_limits.AcceptanceTestJointLimits.client

Definition at line 54 of file acceptance_test_joint_limits.py.

acceptance_test_joint_limits.AcceptanceTestJointLimits.home_positions

Definition at line 59 of file acceptance_test_joint_limits.py.

acceptance_test_joint_limits.AcceptanceTestJointLimits.joint_names

Definition at line 58 of file acceptance_test_joint_limits.py.

acceptance_test_joint_limits.AcceptanceTestJointLimits.joint_velocity_limits

Definition at line 62 of file acceptance_test_joint_limits.py.


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


prbt_support
Author(s):
autogenerated on Tue Feb 2 2021 03:50:33