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.
When compiling in release mode (
catkin_make -DCMAKE_BUILD_TYPE=Release
), severalROS_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 theROS_ASSERT_MSG
statements.