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 b68186f commit 4623a5f
Show file tree
Hide file tree
Showing 93 changed files with 240 additions and 117 deletions.
4 changes: 3 additions & 1 deletion dart/collision/CollisionDetector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
#include <dart/collision/RaycastOption.hpp>
#include <dart/collision/RaycastResult.hpp>
#include <dart/collision/SmartPointer.hpp>
#include <dart/common/Factory.hpp>

#include <dart/dynamics/SmartPointer.hpp>

#include <dart/common/Factory.hpp>

#include <Eigen/Dense>

#include <map>
Expand Down
1 change: 1 addition & 0 deletions dart/collision/CollisionFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_COLLISION_COLLISIONFILTER_HPP_

#include <dart/collision/detail/UnorderedPairs.hpp>

#include <dart/common/Deprecated.hpp>

namespace dart {
Expand Down
4 changes: 3 additions & 1 deletion dart/collision/CollisionGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
#include <dart/collision/RaycastOption.hpp>
#include <dart/collision/RaycastResult.hpp>
#include <dart/collision/SmartPointer.hpp>
#include <dart/common/Observer.hpp>

#include <dart/dynamics/SmartPointer.hpp>

#include <dart/common/Observer.hpp>

#include <unordered_map>
#include <unordered_set>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions dart/collision/CollisionObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_COLLISION_COLLISIONOBJECT_HPP_

#include <dart/collision/SmartPointer.hpp>

#include <dart/dynamics/SmartPointer.hpp>

#include <Eigen/Dense>
Expand Down
1 change: 1 addition & 0 deletions dart/collision/Contact.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_COLLISION_CONTACT_HPP_

#include <dart/collision/SmartPointer.hpp>

#include <dart/dynamics/SmartPointer.hpp>

#include <Eigen/Dense>
Expand Down
1 change: 1 addition & 0 deletions dart/collision/detail/CollisionGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_COLLISION_DETAIL_COLLISIONGROUP_HPP_

#include <dart/collision/CollisionGroup.hpp>

#include <dart/dynamics/BodyNode.hpp>
#include <dart/dynamics/Skeleton.hpp>

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

#include <dart/common/Deprecated.hpp>
#include <dart/config.hpp>

#include <dart/common/Deprecated.hpp>

#include <Eigen/Dense>

// clang-format off
Expand Down
1 change: 1 addition & 0 deletions dart/collision/fcl/CollisionShapes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_COLLISION_FCL_MESH_COLLISIONSHAPES_HPP_

#include <dart/collision/fcl/BackwardCompatibility.hpp>

#include <dart/math/Constants.hpp>

#include <assimp/scene.h>
Expand Down
1 change: 1 addition & 0 deletions dart/collision/ode/detail/OdeHeightmap-impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
*/

#include <dart/collision/ode/detail/OdeHeightmap.hpp>

#include <dart/dynamics/HeightmapShape.hpp>

#include <type_traits>
Expand Down
1 change: 1 addition & 0 deletions dart/collision/ode/detail/OdeHeightmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_COLLISION_ODE_DETAIL_ODEHEIGHTMAP_HPP_

#include <dart/collision/ode/detail/OdeGeom.hpp>

#include <dart/dynamics/HeightmapShape.hpp>

#include <ode/ode.h>
Expand Down
3 changes: 2 additions & 1 deletion dart/common/Memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
#ifndef DART_COMMON_MEMORY_HPP_
#define DART_COMMON_MEMORY_HPP_

#include <dart/config.hpp>

#include <dart/common/Deprecated.hpp>
#include <dart/common/detail/AlignedAllocator.hpp>
#include <dart/config.hpp>

#include <map>
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions dart/constraint/BallJointConstraint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_CONSTRAINT_BALLJOINTCONSTRAINT_HPP_

#include <dart/constraint/DynamicJointConstraint.hpp>

#include <dart/math/MathTypes.hpp>

#include <Eigen/Dense>
Expand Down
6 changes: 4 additions & 2 deletions dart/constraint/ConstraintSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@
#ifndef DART_CONSTRAINT_CONSTRAINTSOVER_HPP_
#define DART_CONSTRAINT_CONSTRAINTSOVER_HPP_

#include <dart/collision/CollisionDetector.hpp>
#include <dart/common/Deprecated.hpp>
#include <dart/constraint/ConstrainedGroup.hpp>
#include <dart/constraint/ConstraintBase.hpp>
#include <dart/constraint/SmartPointer.hpp>

#include <dart/collision/CollisionDetector.hpp>

#include <dart/common/Deprecated.hpp>

#include <Eigen/Dense>

#include <vector>
Expand Down
4 changes: 3 additions & 1 deletion dart/constraint/ContactConstraint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
#ifndef DART_CONSTRAINT_CONTACTCONSTRAINT_HPP_
#define DART_CONSTRAINT_CONTACTCONSTRAINT_HPP_

#include <dart/collision/CollisionDetector.hpp>
#include <dart/constraint/ConstraintBase.hpp>
#include <dart/constraint/ContactSurface.hpp>

#include <dart/collision/CollisionDetector.hpp>

#include <dart/math/MathTypes.hpp>

namespace dart {
Expand Down
4 changes: 3 additions & 1 deletion dart/constraint/ContactSurface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
#ifndef DART_CONSTRAINT_CONTACTSURFACE_HPP_
#define DART_CONSTRAINT_CONTACTSURFACE_HPP_

#include <dart/collision/Contact.hpp>
#include <dart/constraint/SmartPointer.hpp>

#include <dart/collision/Contact.hpp>

#include <dart/dynamics/ShapeNode.hpp>

#include <Eigen/Core>
Expand Down
1 change: 1 addition & 0 deletions dart/constraint/DantzigLCPSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_CONSTRAINT_DANTZIGLCPSOLVER_HPP_

#include <dart/config.hpp>

#include <dart/constraint/LCPSolver.hpp>

#include <cstddef>
Expand Down
1 change: 1 addition & 0 deletions dart/constraint/MimicMotorConstraint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_CONSTRAINT_MIMICMOTORCONSTRAINT_HPP_

#include <dart/constraint/ConstraintBase.hpp>

#include <dart/dynamics/MimicDofProperties.hpp>

#include <vector>
Expand Down
1 change: 1 addition & 0 deletions dart/constraint/PGSLCPSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_CONSTRAINT_PGSLCPSOLVER_HPP_

#include <dart/config.hpp>

#include <dart/constraint/LCPSolver.hpp>

#include <cstddef>
Expand Down
4 changes: 3 additions & 1 deletion dart/constraint/SoftContactConstraint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
#ifndef DART_CONSTRAINT_SOFTCONTACTCONSTRAINT_HPP_
#define DART_CONSTRAINT_SOFTCONTACTCONSTRAINT_HPP_

#include <dart/collision/CollisionDetector.hpp>
#include <dart/constraint/ConstraintBase.hpp>

#include <dart/collision/CollisionDetector.hpp>

#include <dart/math/MathTypes.hpp>

namespace dart {
Expand Down
1 change: 1 addition & 0 deletions dart/constraint/WeldJointConstraint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_CONSTRAINT_WELDJOINTCONSTRAINT_HPP_

#include <dart/constraint/DynamicJointConstraint.hpp>

#include <dart/math/MathTypes.hpp>

#include <Eigen/Dense>
Expand Down
9 changes: 6 additions & 3 deletions dart/dynamics/BodyNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@
#ifndef DART_DYNAMICS_BODYNODE_HPP_
#define DART_DYNAMICS_BODYNODE_HPP_

#include <dart/common/Deprecated.hpp>
#include <dart/common/EmbeddedAspect.hpp>
#include <dart/common/Signal.hpp>
#include <dart/config.hpp>

#include <dart/dynamics/EndEffector.hpp>
#include <dart/dynamics/Frame.hpp>
#include <dart/dynamics/Marker.hpp>
Expand All @@ -45,8 +43,13 @@
#include <dart/dynamics/SpecializedNodeManager.hpp>
#include <dart/dynamics/TemplatedJacobianNode.hpp>
#include <dart/dynamics/detail/BodyNodeAspect.hpp>

#include <dart/math/Geometry.hpp>

#include <dart/common/Deprecated.hpp>
#include <dart/common/EmbeddedAspect.hpp>
#include <dart/common/Signal.hpp>

#include <Eigen/Dense>
#include <Eigen/StdVector>

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

#include <dart/common/Composite.hpp>
#include <dart/dynamics/Node.hpp>

#include <dart/common/Composite.hpp>

namespace dart {
namespace dynamics {

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

#include <dart/dynamics/SmartPointer.hpp>

#include <dart/common/ClassWithVirtualBase.hpp>
#include <dart/common/Subject.hpp>
#include <dart/dynamics/SmartPointer.hpp>

#include <Eigen/Core>

Expand Down
7 changes: 4 additions & 3 deletions dart/dynamics/EndEffector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@
#ifndef DART_DYNAMICS_ENDEFFECTOR_HPP_
#define DART_DYNAMICS_ENDEFFECTOR_HPP_

#include <dart/common/Aspect.hpp>
#include <dart/common/AspectWithVersion.hpp>
#include <dart/common/SpecializedForAspect.hpp>
#include <dart/dynamics/CompositeNode.hpp>
#include <dart/dynamics/FixedJacobianNode.hpp>
#include <dart/dynamics/detail/EndEffectorAspect.hpp>

#include <dart/common/Aspect.hpp>
#include <dart/common/AspectWithVersion.hpp>
#include <dart/common/SpecializedForAspect.hpp>

namespace dart {
namespace dynamics {

Expand Down
5 changes: 3 additions & 2 deletions dart/dynamics/Entity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
#ifndef DART_DYNAMICS_ENTITY_HPP_
#define DART_DYNAMICS_ENTITY_HPP_

#include <dart/dynamics/Shape.hpp>
#include <dart/dynamics/SmartPointer.hpp>

#include <dart/common/Composite.hpp>
#include <dart/common/Signal.hpp>
#include <dart/common/Subject.hpp>
#include <dart/dynamics/Shape.hpp>
#include <dart/dynamics/SmartPointer.hpp>

#include <Eigen/Core>

Expand Down
5 changes: 3 additions & 2 deletions dart/dynamics/FixedFrame.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
#ifndef DART_DYNAMICS_FIXEDFRAME_HPP_
#define DART_DYNAMICS_FIXEDFRAME_HPP_

#include <dart/common/EmbeddedAspect.hpp>
#include <dart/common/VersionCounter.hpp>
#include <dart/dynamics/Frame.hpp>
#include <dart/dynamics/detail/FixedFrameAspect.hpp>

#include <dart/common/EmbeddedAspect.hpp>
#include <dart/common/VersionCounter.hpp>

namespace dart {
namespace dynamics {

Expand Down
1 change: 1 addition & 0 deletions dart/dynamics/Frame.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define DART_DYNAMICS_FRAME_HPP_

#include <dart/dynamics/Entity.hpp>

#include <dart/math/MathTypes.hpp>

#include <Eigen/Geometry>
Expand Down
3 changes: 2 additions & 1 deletion dart/dynamics/FreeJoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
#ifndef DART_DYNAMICS_FREEJOINT_HPP_
#define DART_DYNAMICS_FREEJOINT_HPP_

#include <dart/common/Deprecated.hpp>
#include <dart/dynamics/GenericJoint.hpp>

#include <dart/common/Deprecated.hpp>

#include <Eigen/Dense>

#include <string>
Expand Down
3 changes: 2 additions & 1 deletion dart/dynamics/IkFast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
#include <array>

#define IKFAST_HAS_LIBRARY
#include <dart/dynamics/InverseKinematics.hpp>
#include "dart/external/ikfast/ikfast.h"

#include <dart/dynamics/InverseKinematics.hpp>

namespace dart {
namespace dynamics {

Expand Down
11 changes: 7 additions & 4 deletions dart/dynamics/InverseKinematics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,19 @@
#ifndef DART_DYNAMICS_INVERSEKINEMATICS_HPP_
#define DART_DYNAMICS_INVERSEKINEMATICS_HPP_

#include <dart/common/Signal.hpp>
#include <dart/common/Subject.hpp>
#include <dart/common/sub_ptr.hpp>
#include <dart/dynamics/JacobianNode.hpp>
#include <dart/dynamics/SmartPointer.hpp>
#include <dart/math/Geometry.hpp>

#include <dart/optimizer/Function.hpp>
#include <dart/optimizer/Problem.hpp>
#include <dart/optimizer/Solver.hpp>

#include <dart/math/Geometry.hpp>

#include <dart/common/Signal.hpp>
#include <dart/common/Subject.hpp>
#include <dart/common/sub_ptr.hpp>

#include <Eigen/SVD>

#include <functional>
Expand Down
10 changes: 6 additions & 4 deletions dart/dynamics/Joint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@
#ifndef DART_DYNAMICS_JOINT_HPP_
#define DART_DYNAMICS_JOINT_HPP_

#include <dart/common/Deprecated.hpp>
#include <dart/common/EmbeddedAspect.hpp>
#include <dart/common/Subject.hpp>
#include <dart/common/VersionCounter.hpp>
#include <dart/dynamics/Frame.hpp>
#include <dart/dynamics/MimicDofProperties.hpp>
#include <dart/dynamics/SmartPointer.hpp>
#include <dart/dynamics/detail/JointAspect.hpp>

#include <dart/math/MathTypes.hpp>

#include <dart/common/Deprecated.hpp>
#include <dart/common/EmbeddedAspect.hpp>
#include <dart/common/Subject.hpp>
#include <dart/common/VersionCounter.hpp>

#include <memory>
#include <string>
#include <vector>
Expand Down
3 changes: 2 additions & 1 deletion dart/dynamics/Marker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
#ifndef DART_DYNAMICS_MARKER_HPP_
#define DART_DYNAMICS_MARKER_HPP_

#include <dart/common/Deprecated.hpp>
#include <dart/dynamics/FixedJacobianNode.hpp>
#include <dart/dynamics/detail/MarkerAspect.hpp>

#include <dart/common/Deprecated.hpp>

#include <Eigen/Dense>

namespace dart {
Expand Down
Loading

0 comments on commit 4623a5f

Please sign in to comment.