ROS_ASSERT_MSG not built

asked 2021-03-22 02:53:03 -0500

jacka122 gravatar image

I am using ROS_ASSERT_MSG macro to do some checks and building my ROS package using catkin build. Build type is set to DEBUG. But the assertion checks don't seem to be built. Following is the output of catkin config.

[jack@xps motion_compensation]$ catkin config
------------------------------------------------------------------------------------------------------------------
Profile:                     default
Extending:          [cached] /opt/ros/melodic
Workspace:                   /home/jack/catkin_ws
------------------------------------------------------------------------------------------------------------------
Build Space:        [exists] /home/jack/catkin_ws/build
Devel Space:        [exists] /home/jack/catkin_ws/devel
Install Space:      [unused] /home/jack/catkin_ws/install
Log Space:          [exists] /home/jackcatkin_ws/logs
Source Space:       [exists] /home/jack/catkin_ws/src
DESTDIR:            [unused] None
------------------------------------------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
------------------------------------------------------------------------------------------------------------------
Additional CMake Args:       -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=14
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
------------------------------------------------------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
------------------------------------------------------------------------------------------------------------------
Workspace configuration appears valid.
------------------------------------------------------------------------------------------------------------------

How do I get the assertion check to be compiled?

edit retag flag offensive close merge delete