Skip to main content

TestPathIK Class

Declaration​

class test_path_ik_wrapper::TestPathIK { ... }

Public Member Functions Index​

setup_method (self)
test_path_ik_successful_computation (self, mock_path_ik)
test_path_ik_with_custom_options (self, mock_path_ik)
test_path_ik_partial_path_error (self, mock_path_ik)
test_path_ik_empty_partial_path_error (self, mock_path_ik)
test_path_ik_empty_reference_path (self, mock_path_ik)
test_path_ik_single_waypoint (self, mock_path_ik)
test_path_ik_none_options_creates_default (self, mock_path_ik)
test_path_ik_function_signature (self)

Public Member Attributes Index​

mock_robot_state = Mock()
mock_group = Mock()
listmock_tip_links = ["link1", "link2"]
listreference_path = ...
listjoint_path = ...

Description​

Test the path_ik wrapper function.

Definition at line 34 of file test_path_ik_wrapper.py.

Public Member Functions​

setup_method()​

test_path_ik_wrapper.TestPathIK.setup_method (self self)
Set up test fixtures before each test method.

Definition at line 37 of file test_path_ik_wrapper.py.

test_path_ik_empty_partial_path_error()​

test_path_ik_wrapper.TestPathIK.test_path_ik_empty_partial_path_error (self self, mock_path_ik mock_path_ik)
Test PartialPathError with empty partial path.

Definition at line 135 of file test_path_ik_wrapper.py.

test_path_ik_empty_reference_path()​

test_path_ik_wrapper.TestPathIK.test_path_ik_empty_reference_path (self self, mock_path_ik mock_path_ik)
Test path IK with empty reference path.

Definition at line 154 of file test_path_ik_wrapper.py.

test_path_ik_function_signature()​

test_path_ik_wrapper.TestPathIK.test_path_ik_function_signature (self self)
Test that the function signature matches the documentation.

Definition at line 205 of file test_path_ik_wrapper.py.

test_path_ik_none_options_creates_default()​

test_path_ik_wrapper.TestPathIK.test_path_ik_none_options_creates_default (self self, mock_path_ik mock_path_ik)
Test that None options creates default PathIKOptions.

Definition at line 188 of file test_path_ik_wrapper.py.

test_path_ik_partial_path_error()​

test_path_ik_wrapper.TestPathIK.test_path_ik_partial_path_error (self self, mock_path_ik mock_path_ik)
Test that PartialPathError is raised when IK fails.

Definition at line 112 of file test_path_ik_wrapper.py.

test_path_ik_single_waypoint()​

test_path_ik_wrapper.TestPathIK.test_path_ik_single_waypoint (self self, mock_path_ik mock_path_ik)
Test path IK with single waypoint.

Definition at line 167 of file test_path_ik_wrapper.py.

test_path_ik_successful_computation()​

test_path_ik_wrapper.TestPathIK.test_path_ik_successful_computation (self self, mock_path_ik mock_path_ik)
Test successful path IK computation.

Definition at line 59 of file test_path_ik_wrapper.py.

test_path_ik_with_custom_options()​

test_path_ik_wrapper.TestPathIK.test_path_ik_with_custom_options (self self, mock_path_ik mock_path_ik)
Test path IK with custom options.

Definition at line 83 of file test_path_ik_wrapper.py.

Public Member Attributes​

joint_path​

list test_path_ik_wrapper.TestPathIK::joint_path
Initialiser
= [             np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6]), # joints 1             np.array([0.2, 0.3, 0.4, 0.5, 0.6, 0.7]), # joints 2             np.array([0.3, 0.4, 0.5, 0.6, 0.7, 0.8]), # joints 3         ]

Definition at line 52 of file test_path_ik_wrapper.py.

mock_group​

test_path_ik_wrapper.TestPathIK::mock_group = Mock()

Definition at line 41 of file test_path_ik_wrapper.py.

mock_robot_state​

test_path_ik_wrapper.TestPathIK::mock_robot_state = Mock()

Definition at line 40 of file test_path_ik_wrapper.py.

mock_tip_links​

test_path_ik_wrapper.TestPathIK::mock_tip_links = ["link1", "link2"]

Definition at line 42 of file test_path_ik_wrapper.py.

reference_path​

test_path_ik_wrapper.TestPathIK::reference_path
Initialiser
= [             np.array([1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0]), # pose 1             np.array([1.1, 0.1, 0.0, 0.0, 0.0, 0.0, 1.0]), # pose 2             np.array([1.2, 0.2, 0.0, 0.0, 0.0, 0.0, 1.0]), # pose 3         ]

Definition at line 45 of file test_path_ik_wrapper.py.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.15.0.