Skip to content

Commit

Permalink
GPL make sure the defined joint is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jul 16, 2024
1 parent 38df3ea commit c8de8b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ parallel_gripper_action_controller:
joint: {
type: string,
read_only: true,
validation: {
not_empty<>: null
}
}
state_interfaces: {
type: string_array,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ TEST_F(GripperControllerTest, ParametersNotSet)

TEST_F(GripperControllerTest, JointParameterIsEmpty)
{
this->SetUpController("test_gripper_action_position_controller_empty_joint");
this->SetUpController(
"test_gripper_action_position_controller_empty_joint",
controller_interface::return_type::ERROR);

// configure failed, 'joints' is empty
ASSERT_EQ(
Expand Down

0 comments on commit c8de8b8

Please sign in to comment.