ROS Style Guide and ros_lint¶
Motivation¶
The ROS Scan-N-Plan application is complete, tested and documented. Now we want to clean up the code according to the style guide so other developers can easily understand our work.
Scan-N-Plan Application: Problem Statement¶
We have completed and tested our Scan-N-Plan program and we need to release the code to the public. Your goal is to ensure the code we have created conforms to the ROS C++ Style Guide.
Scan-N-Plan Application: Guidance¶
Configure Package¶
- Add a build dependency on roslint to your package’s package.xml:
<build_depend>roslint</build_depend>
- Add roslint to catkin REQUIRED COMPONENTS in CMakeLists.txt:
find_package(catkin REQUIRED COMPONENTS
...
roslint
)
- Invoke roslint function from CMakeLists.txt
roslint_cpp()