Skip to content

Conversation

juanjqo
Copy link
Member

@juanjqo juanjqo commented May 8, 2025

Hi @dqrobotics/developers ,

This PR adds a new example to test the new setter and getter methods in the DQ_SerialManipulator class.
The example requires dqrobotics/cpp#69.

Kind regards,

Juancho

@mmmarinho
Copy link
Member

Hi @juanjqo,

For tests, we use assert. Example:

assert((dqsm->get_lower_q_limit()==deg2rad_with_mask(lower_q_limit_check.head(dqsm->get_dim_configuration_space()),angle_mask)));

The difference is that an assert will always fail, whereas an exception could otherwise be caught and end up in our codebase.

@juanjqo
Copy link
Member Author

juanjqo commented May 8, 2025

Hi @mmmarinho,

I modified the example to use assert.

Kind regards,

Juancho

@mmmarinho mmmarinho self-assigned this May 13, 2025
@mmmarinho mmmarinho merged commit 1bc2ce9 into dqrobotics:master May 13, 2025
@juanjqo juanjqo deleted the set_get_dh branch May 16, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants