By default all the data (int, float …) is stored on stack. The lifecycle of these variables are limited to the lifecycle of a function. After the function execution is complete, the variables are deleted from the memory and the system is free to allocate it to other variables/data. The data is stored in stack … Continue reading C++ Memory: Stack vs Heap
Category: Software Experiments
Understanding Ros2 components
There are 2 types of components to write the source code in ros2: node and nodelets. NodeNodelets (It is called as component in ros2)It is separate executableIt is a shared library. Components can run as an individual process (easier to debug as components are isolated) and also in single process (more efficient and better communication … Continue reading Understanding Ros2 components
Why CMake ?
C++ application can be used cross platform. And this requires configuring the project for the corresponding compilers (ex. make, vs studio). This can be tedious. CMake is used to solve this problem. CMake configures the setting for the compiler. It creates the vs studio project (or eclipse project). It manages the dependencies of a project's … Continue reading Why CMake ?