Skip to content

Commit

Permalink
[lint] Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 14, 2024
1 parent d709d34 commit 266f4b1
Show file tree
Hide file tree
Showing 566 changed files with 1,646 additions and 1,396 deletions.
4 changes: 2 additions & 2 deletions dart/collision/CollisionDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@

#include "dart/collision/CollisionDetector.hpp"

#include <algorithm>

#include "dart/collision/CollisionGroup.hpp"
#include "dart/collision/CollisionObject.hpp"
#include "dart/common/Console.hpp"
#include "dart/dynamics/BodyNode.hpp"
#include "dart/dynamics/Skeleton.hpp"

#include <algorithm>

namespace dart {
namespace collision {

Expand Down
10 changes: 5 additions & 5 deletions dart/collision/CollisionDetector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
#ifndef DART_COLLISION_COLLISIONDETECTOR_HPP_
#define DART_COLLISION_COLLISIONDETECTOR_HPP_

#include <map>
#include <vector>

#include <Eigen/Dense>

#include "dart/collision/CollisionOption.hpp"
#include "dart/collision/CollisionResult.hpp"
#include "dart/collision/Contact.hpp"
Expand All @@ -49,6 +44,11 @@
#include "dart/common/Factory.hpp"
#include "dart/dynamics/SmartPointer.hpp"

#include <Eigen/Dense>

#include <map>
#include <vector>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/CollisionGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

#include "dart/collision/CollisionGroup.hpp"

#include <cassert>

#include "dart/collision/CollisionDetector.hpp"
#include "dart/collision/CollisionObject.hpp"
#include "dart/dynamics/BodyNode.hpp"
#include "dart/dynamics/Skeleton.hpp"

#include <cassert>

namespace dart {
namespace collision {

Expand Down
8 changes: 4 additions & 4 deletions dart/collision/CollisionGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
#ifndef DART_COLLISION_COLLISIONGROUP_HPP_
#define DART_COLLISION_COLLISIONGROUP_HPP_

#include <unordered_map>
#include <unordered_set>
#include <vector>

#include "dart/collision/CollisionOption.hpp"
#include "dart/collision/CollisionResult.hpp"
#include "dart/collision/DistanceOption.hpp"
Expand All @@ -47,6 +43,10 @@
#include "dart/common/Observer.hpp"
#include "dart/dynamics/SmartPointer.hpp"

#include <unordered_map>
#include <unordered_set>
#include <vector>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/CollisionObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
#ifndef DART_COLLISION_COLLISIONOBJECT_HPP_
#define DART_COLLISION_COLLISIONOBJECT_HPP_

#include <Eigen/Dense>

#include "dart/collision/SmartPointer.hpp"
#include "dart/dynamics/SmartPointer.hpp"

#include <Eigen/Dense>

namespace dart {
namespace collision {

Expand Down
3 changes: 2 additions & 1 deletion dart/collision/CollisionOption.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
#ifndef DART_COLLISION_COLLISIONOPTION_HPP_
#define DART_COLLISION_COLLISIONOPTION_HPP_

#include <cstddef>
#include <memory>

#include <cstddef>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/CollisionResult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
#ifndef DART_COLLISION_COLLISIONRESULT_HPP_
#define DART_COLLISION_COLLISIONRESULT_HPP_

#include "dart/collision/Contact.hpp"

#include <unordered_set>
#include <vector>

#include "dart/collision/Contact.hpp"

namespace dart {

namespace dynamics {
Expand Down
4 changes: 2 additions & 2 deletions dart/collision/Contact.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
#ifndef DART_COLLISION_CONTACT_HPP_
#define DART_COLLISION_CONTACT_HPP_

#include <Eigen/Dense>

#include "dart/collision/SmartPointer.hpp"
#include "dart/dynamics/SmartPointer.hpp"

#include <Eigen/Dense>

namespace dart {
namespace collision {

Expand Down
3 changes: 2 additions & 1 deletion dart/collision/DistanceOption.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
#ifndef DART_COLLISION_DISTANCE_OPTION_HPP_
#define DART_COLLISION_DISTANCE_OPTION_HPP_

#include <cstddef>
#include <memory>

#include <cstddef>

namespace dart {
namespace collision {

Expand Down
3 changes: 2 additions & 1 deletion dart/collision/RaycastOption.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
#ifndef DART_COLLISION_RAYCASTOPTION_HPP_
#define DART_COLLISION_RAYCASTOPTION_HPP_

#include <cstddef>
#include <memory>

#include <cstddef>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/RaycastResult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#ifndef DART_COLLISION_RAYCASTRESULT_HPP_
#define DART_COLLISION_RAYCASTRESULT_HPP_

#include <vector>

#include <Eigen/Dense>

#include <vector>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/bullet/BulletCollisionDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

#include "dart/collision/bullet/BulletCollisionDetector.hpp"

#include <algorithm>

#include "dart/collision/CollisionFilter.hpp"
#include "dart/collision/CollisionObject.hpp"
#include "dart/collision/bullet/BulletCollisionGroup.hpp"
Expand All @@ -57,6 +55,8 @@
#include "dart/dynamics/SoftMeshShape.hpp"
#include "dart/dynamics/SphereShape.hpp"

#include <algorithm>

namespace dart {
namespace collision {

Expand Down
8 changes: 4 additions & 4 deletions dart/collision/bullet/BulletCollisionDetector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
#ifndef DART_COLLISION_BULLET_BULLETCOLLISIONDETECTOR_HPP_
#define DART_COLLISION_BULLET_BULLETCOLLISIONDETECTOR_HPP_

#include <vector>

#include <assimp/scene.h>

#include "dart/collision/CollisionDetector.hpp"
#include "dart/collision/bullet/BulletCollisionGroup.hpp"
#include "dart/collision/bullet/BulletCollisionShape.hpp"
#include "dart/collision/bullet/BulletInclude.hpp"

#include <assimp/scene.h>

#include <vector>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/bullet/BulletCollisionShape.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#ifndef DART_COLLISION_BULLET_BULLETCOLLISIONSHAPE_HPP_
#define DART_COLLISION_BULLET_BULLETCOLLISIONSHAPE_HPP_

#include <memory>

#include "dart/collision/bullet/BulletInclude.hpp"

#include <memory>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/dart/DARTCollide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

#include "dart/collision/dart/DARTCollide.hpp"

#include <memory>

#include "dart/collision/CollisionObject.hpp"
#include "dart/dynamics/BodyNode.hpp"
#include "dart/dynamics/BoxShape.hpp"
Expand All @@ -42,6 +40,8 @@
#include "dart/dynamics/SphereShape.hpp"
#include "dart/math/Helpers.hpp"

#include <memory>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/dart/DARTCollide.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
#ifndef DART_COLLISION_DART_DARTCOLLIDE_HPP_
#define DART_COLLISION_DART_DARTCOLLIDE_HPP_

#include <vector>
#include "dart/collision/CollisionDetector.hpp"

#include <Eigen/Dense>

#include "dart/collision/CollisionDetector.hpp"
#include <vector>

namespace dart {
namespace collision {
Expand Down
4 changes: 2 additions & 2 deletions dart/collision/dart/DARTCollisionDetector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#ifndef DART_COLLISION_DART_DARTCOLLISIONDETECTOR_HPP_
#define DART_COLLISION_DART_DARTCOLLISIONDETECTOR_HPP_

#include <vector>

#include "dart/collision/CollisionDetector.hpp"

#include <vector>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/dart/DARTCollisionObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#ifndef DART_COLLISION_DART_DARTCOLLISIONOBJECT_HPP_
#define DART_COLLISION_DART_DARTCOLLISIONOBJECT_HPP_

#include <Eigen/Dense>

#include "dart/collision/CollisionObject.hpp"

#include <Eigen/Dense>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/fcl/BackwardCompatibility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
#ifndef DART_COLLISION_FCL_BACKWARDCOMPATIBILITY_HPP_
#define DART_COLLISION_FCL_BACKWARDCOMPATIBILITY_HPP_

#include <Eigen/Dense>

#include "dart/common/Deprecated.hpp"
#include "dart/config.hpp"

#include <Eigen/Dense>

// clang-format off
#define FCL_VERSION_AT_LEAST(x,y,z) \
(FCL_MAJOR_VERSION > x || (FCL_MAJOR_VERSION >= x && \
Expand Down
6 changes: 3 additions & 3 deletions dart/collision/fcl/CollisionShapes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
#ifndef DART_COLLISION_FCL_MESH_COLLISIONSHAPES_HPP_
#define DART_COLLISION_FCL_MESH_COLLISIONSHAPES_HPP_

#include <cmath>
#include "dart/collision/fcl/BackwardCompatibility.hpp"
#include "dart/math/Constants.hpp"

#include <assimp/scene.h>

#include "dart/collision/fcl/BackwardCompatibility.hpp"
#include "dart/math/Constants.hpp"
#include <cmath>

namespace dart {
namespace collision {
Expand Down
4 changes: 2 additions & 2 deletions dart/collision/fcl/FCLCollisionDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

#include "dart/collision/fcl/FCLCollisionDetector.hpp"

#include <assimp/scene.h>

#include "dart/collision/CollisionFilter.hpp"
#include "dart/collision/CollisionObject.hpp"
#include "dart/collision/DistanceFilter.hpp"
Expand All @@ -55,6 +53,8 @@
#include "dart/dynamics/SphereShape.hpp"
#include "dart/dynamics/VoxelGridShape.hpp"

#include <assimp/scene.h>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/fcl/FCLCollisionDetector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
#ifndef DART_COLLISION_FCL_FCLCOLLISIONDETECTOR_HPP_
#define DART_COLLISION_FCL_FCLCOLLISIONDETECTOR_HPP_

#include <vector>

#include "dart/collision/CollisionDetector.hpp"
#include "dart/collision/fcl/FCLTypes.hpp"

#include <vector>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/fcl/FCLTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#ifndef DART_COLLISION_FCL_FCLTTYPES_HPP_
#define DART_COLLISION_FCL_FCLTTYPES_HPP_

#include <Eigen/Dense>

#include "dart/collision/fcl/BackwardCompatibility.hpp"

#include <Eigen/Dense>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/ode/OdeCollisionDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

#include "dart/collision/ode/OdeCollisionDetector.hpp"

#include <ode/ode.h>

#include "dart/collision/CollisionFilter.hpp"
#include "dart/collision/ode/OdeCollisionGroup.hpp"
#include "dart/collision/ode/OdeCollisionObject.hpp"
Expand All @@ -49,6 +47,8 @@
#include "dart/dynamics/SoftMeshShape.hpp"
#include "dart/dynamics/SphereShape.hpp"

#include <ode/ode.h>

namespace dart {
namespace collision {

Expand Down
4 changes: 2 additions & 2 deletions dart/collision/ode/OdeCollisionDetector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#ifndef DART_COLLISION_ODE_ODECOLLISIONDETECTOR_HPP_
#define DART_COLLISION_ODE_ODECOLLISIONDETECTOR_HPP_

#include <ode/ode.h>

#include "dart/collision/CollisionDetector.hpp"

#include <ode/ode.h>

#define MAX_COLLIDE_RETURNS 250

namespace dart {
Expand Down
4 changes: 2 additions & 2 deletions dart/collision/ode/OdeCollisionGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#ifndef DART_COLLISION_ODE_ODECOLLISIONGROUP_HPP_
#define DART_COLLISION_ODE_ODECOLLISIONGROUP_HPP_

#include <ode/ode.h>

#include "dart/collision/CollisionGroup.hpp"

#include <ode/ode.h>

namespace dart {
namespace collision {

Expand Down
Loading

0 comments on commit 266f4b1

Please sign in to comment.