Skip to content

Commit ea727f7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f7f362d commit ea727f7

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

src/ros_publish.hxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ inline void RosPublish::sendData<std::pair<sot::MatrixHomogeneous, Vector> >(
1616
publisher,
1717
boost::shared_ptr<
1818
SotToRos<std::pair<sot::MatrixHomogeneous, Vector> >::signalIn_t>
19-
signal, sigtime_t time) {
19+
signal,
20+
sigtime_t time) {
2021
SotToRos<std::pair<sot::MatrixHomogeneous, Vector> >::ros_t result;
2122
if (publisher->trylock()) {
2223
publisher->msg_.child_frame_id = "/dynamic_graph/world";

src/ros_queued_subscribe.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ class RosQueuedSubscribe : public dynamicgraph::Entity {
176176
ros::NodeHandle& nh() { return nh_; }
177177

178178
template <typename R, typename S>
179-
void callback(boost::shared_ptr<dynamicgraph::SignalPtr<S, sigtime_t> >
180-
signal, const R& data);
179+
void callback(
180+
boost::shared_ptr<dynamicgraph::SignalPtr<S, sigtime_t> > signal,
181+
const R& data);
181182

182183
template <typename R>
183184
void callbackTimestamp(

src/ros_subscribe.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ class RosSubscribe : public dynamicgraph::Entity {
7171
ros::NodeHandle& nh() { return nh_; }
7272

7373
template <typename R, typename S>
74-
void callback(boost::shared_ptr<dynamicgraph::SignalPtr<S, sigtime_t> >
75-
signal, const R& data);
74+
void callback(
75+
boost::shared_ptr<dynamicgraph::SignalPtr<S, sigtime_t> > signal,
76+
const R& data);
7677

7778
template <typename R>
7879
void callbackTimestamp(

src/ros_subscribe.hxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ namespace dg = dynamicgraph;
1818
namespace dynamicgraph {
1919
template <typename R, typename S>
2020
void RosSubscribe::callback(
21-
boost::shared_ptr<dynamicgraph::SignalPtr<S, sigtime_t> > signal, const R& data) {
21+
boost::shared_ptr<dynamicgraph::SignalPtr<S, sigtime_t> > signal,
22+
const R& data) {
2223
typedef S sot_t;
2324
sot_t value;
2425
converter(value, data);
@@ -101,7 +102,8 @@ struct Add<std::pair<T, dg::Vector> > {
101102
RosSubscribe.bindedSignal()[signal] = bindedSignal;
102103

103104
// Timestamp.
104-
typedef dynamicgraph::SignalPtr<RosSubscribe::ptime, sigtime_t> signalTimestamp_t;
105+
typedef dynamicgraph::SignalPtr<RosSubscribe::ptime, sigtime_t>
106+
signalTimestamp_t;
105107
std::string signalTimestamp =
106108
(boost::format("%1%%2%") % signal % "Timestamp").str();
107109

0 commit comments

Comments
 (0)