Skip to content

Commit 5463213

Browse files
[pre-commit] Add pre-commit and makes it happy.
1 parent 561e2ad commit 5463213

14 files changed

+37
-31
lines changed

.github/workflows/ci_ubuntu20_04_foxy_ros2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
cd $ROS_WORKSPACE/src
5454
ln -s /home/runner/work/dynamic_graph_bridge/dynamic_graph_bridge .
5555
git clone -b devel --single-branch --recursive https://github.com/stack-of-tasks/dynamic_graph_bridge_msgs.git
56-
56+
5757
#
5858
# Build dep and checkout from source.
5959
#

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ bin/
77
build/
88
srv_gen/
99
*~
10-
*/__pycache__/*
10+
*/__pycache__/*

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ install(DIRECTORY include/ DESTINATION include)
8484
install(FILES package.xml DESTINATION share/${PROJECT_NAME})
8585

8686
#ROS 2 packaging
87-
ament_package()
87+
ament_package()

doc/Doxyfile.extra.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
INPUT = @PROJECT_SOURCE_DIR@/include \
22
@PROJECT_SOURCE_DIR@/doc
3-

include/dynamic_graph_bridge/ros_python_interpreter_client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ class RosPythonInterpreterClient
149149
DurationSec timeout_connection_s_;
150150
};
151151

152-
} // namespace dynamic_graph_bridge
152+
} // namespace dynamic_graph_bridge

include/dynamic_graph_bridge/sot_loader.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class SotLoader : public SotLoaderBasic {
102102

103103
// \brief Method for the thread implementing the starting and stopping part of dynamic_graph
104104
void workThreadLoader();
105-
105+
106106
// \brief Join the thread.
107107
void lthread_join();
108108
typedef std::shared_ptr<SotLoader> SharedPtr;

include/dynamic_graph_bridge/sot_loader_basic.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SotLoaderBasic {
7373

7474
// Node reference
7575
rclcpp::Node::SharedPtr nh_;
76-
76+
7777
// Joint state to be published.
7878
sensor_msgs::msg::JointState joint_state_;
7979

@@ -100,7 +100,7 @@ class SotLoaderBasic {
100100

101101
// Returns nodeHandle
102102
rclcpp::Node::SharedPtr returnsNodeHandle();
103-
103+
104104
/// \brief Unload the library which handles the robot device.
105105
void CleanUp();
106106

src/ros.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ RosNodePtr get_ros_node(std::string node_name)
286286
GLOBAL_LIST_OF_ROS_NODE[node_name] =
287287
std::make_shared<RosNode>(
288288
node_name, "dynamic_graph_bridge");
289-
289+
290290
}
291291
/** Return a reference to the node handle so any function can use it */
292292
return GLOBAL_LIST_OF_ROS_NODE[node_name];

src/ros_parameter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace dynamicgraph {
1919
{
2020
nh->declare_parameter("robot_description",std::string(""));
2121
}
22-
22+
2323
std::string robot_description;
2424
std::string parameter_name("robot_description");
2525
nh->get_parameter(parameter_name,robot_description);
@@ -29,9 +29,9 @@ namespace dynamicgraph {
2929
"Parameter robot_description is empty");
3030
return false;
3131
}
32-
32+
3333
std::string model_name("robot");
34-
34+
3535
// Search for the robot util related to robot_name.
3636
sot::RobotUtilShrPtr aRobotUtil = sot::getRobotUtil(model_name);
3737
// If does not exist then it is created.

0 commit comments

Comments
 (0)