Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statements inside ROS_ASSERT_MSG are not run in release mode #141

Merged
merged 3 commits into from Sep 21, 2021
Merged

Statements inside ROS_ASSERT_MSG are not run in release mode #141

merged 3 commits into from Sep 21, 2021

Conversation

ghost
Copy link

@ghost ghost commented Sep 20, 2021

When compiling in release mode (catkin_make -DCMAKE_BUILD_TYPE=Release),
several ROS_ASSERT_MSG statements are not executed. This causes camera initialisation to fail
and the relevant messages are not displayed. This PR moves statements which set variables
outside of the ROS_ASSERT_MSG statements.

@ghost
Copy link
Author

ghost commented Sep 20, 2021

Fixes #80

@vik748 vik748 changed the base branch from master to dev September 20, 2021 21:40
@vik748 vik748 changed the base branch from dev to master September 20, 2021 21:41
@vik748
Copy link
Contributor

vik748 commented Sep 20, 2021

@calum-blair-archangel Thanks for taking this on. We only merge from dev into master. Can you please rebase this pull request to merge into dev.

When compiling in release mode (catkin_make -DCMAKE_BUILD_TYPE=Release),
several ROS_ASSERT_MSG statements are not executed. This causes initialisation to fail
 and the relevant messages are not displayed. Move statements which set variables
outside of the ROS_ASSERT_MSG statements.
@ghost ghost changed the base branch from master to dev September 21, 2021 08:37
@ghost
Copy link
Author

ghost commented Sep 21, 2021

@vik748 thanks, I've updated the branch and rebased

- adds missing ; on line 378
- fixes warning of printing var of size_t at two places
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.

3 participants