wavelab / mcptam

MCPTAM is a set of ROS nodes for running Real-time 3D Visual Simultaneous Localization and Mapping (SLAM) using Multi-Camera Clusters. It includes tools for calibrating both the intrinsic and extrinsic parameters of the individual cameras within the rigid camera rig.
GNU General Public License v3.0
34 stars 10 forks source link

Clean up mcptam code using roslint and astyle #33

Closed stevenwaslander closed 8 years ago

stevenwaslander commented 8 years ago

Steps being used:

  1. Use Astyle on .h and .cc files to clean up whitespace issues.

     find -regextype egrep -regex '.*\.[ch](c)?$' -exec astyle '{}' --style=allman --indent=spaces=2 --pad-oper --unpad-paren --pad-header --convert-tabs \;
  2. Use clang to clean up comments and lines that run over.

     find . -name '*.cc' | xargs clang-format-3.6 --i -style=file $1
  3. Run roslint on package by following instructions for catkin_make: http://wiki.ros.org/roslint . Note that the .cc files do not automatically get checked, as roslint only looks for .cpp extensions. To remedy this, do TBD.
  4. Fix all remaining issues manually.
StanJBrown commented 8 years ago

For 3 should we look at just renaming all the .cc files to .cpp? I can do it with a script.

Cheers, Stan

On Wed, Jan 20, 2016 at 12:13 PM, Steven Waslander <notifications@github.com

wrote:

Steps being used:

1.

Use Astyle on .h and .cc files to clean up whitespace issues.

 find -regextype egrep -regex '.*\.[ch](c)?$' -exec astyle '{}' --style=allman --indent=spaces=2 --pad-oper --unpad-paren --pad-header --convert-tabs \;

2.

Use clang to clean up comments and lines that run over.

 find . -name '*.cc' | xargs clang-format-3.6 --i -style=file $1

3.

Run roslint on package by following instructions for catkin_make: http://wiki.ros.org/roslint . Note that the .cc files do not automatically get checked, as roslint only looks for .cpp extensions. To remedy this, do TBD. 4.

Fix all remaining issues manually.

— Reply to this email directly or view it on GitHub https://github.com/wavelab/mcptam/issues/33#issuecomment-173278076.

stevenwaslander commented 8 years ago

Thanks Stan, I've done that already locally, but was looking at how to change what roslint looks at instead, as there does not seem to be a strong preference for cc or cpp out there.

Update: cpp is the standard for ROS packages. So we'll switch in a separate issue.

stevenwaslander commented 8 years ago

Completed, but didn't auto close.