Skip to content

Commit e7d8d89

Browse files
committed
Apply formatting
1 parent fbe4048 commit e7d8d89

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

bitbots_motion/bitbots_splines/src/Spline/pose_spline.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,10 @@ geometry_msgs::msg::Quaternion PoseSpline::getGeometryMsgOrientation(double time
3030
return msg;
3131
}
3232

33-
tf2::Vector3 PoseSpline::getPositionPos(double time) {
34-
return tf2::Vector3(x_.pos(time), y_.pos(time), z_.pos(time));
35-
}
33+
tf2::Vector3 PoseSpline::getPositionPos(double time) { return tf2::Vector3(x_.pos(time), y_.pos(time), z_.pos(time)); }
3634

37-
tf2::Vector3 PoseSpline::getPositionVel(double time) {
38-
return tf2::Vector3(x_.vel(time), y_.vel(time), z_.vel(time));
39-
}
40-
tf2::Vector3 PoseSpline::getPositionAcc(double time) {
41-
return tf2::Vector3(x_.acc(time), y_.acc(time), z_.acc(time));
42-
}
35+
tf2::Vector3 PoseSpline::getPositionVel(double time) { return tf2::Vector3(x_.vel(time), y_.vel(time), z_.vel(time)); }
36+
tf2::Vector3 PoseSpline::getPositionAcc(double time) { return tf2::Vector3(x_.acc(time), y_.acc(time), z_.acc(time)); }
4337

4438
tf2::Vector3 PoseSpline::getEulerAngles(double time) {
4539
return tf2::Vector3(roll_.pos(time), pitch_.pos(time), yaw_.pos(time));

bitbots_motion/bitbots_splines/src/Spline/position_spline.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ geometry_msgs::msg::Point PositionSpline::getGeometryMsgPosition(double time) {
1111
return msg;
1212
}
1313

14-
tf2::Vector3 PositionSpline::getPos(double time) {
15-
return tf2::Vector3(x_.pos(time), y_.pos(time), z_.pos(time));
16-
}
14+
tf2::Vector3 PositionSpline::getPos(double time) { return tf2::Vector3(x_.pos(time), y_.pos(time), z_.pos(time)); }
1715

18-
tf2::Vector3 PositionSpline::getVel(double time) {
19-
return tf2::Vector3(x_.vel(time), y_.vel(time), z_.vel(time));
20-
}
21-
tf2::Vector3 PositionSpline::getAcc(double time) {
22-
return tf2::Vector3(x_.acc(time), y_.acc(time), z_.acc(time));
23-
}
16+
tf2::Vector3 PositionSpline::getVel(double time) { return tf2::Vector3(x_.vel(time), y_.vel(time), z_.vel(time)); }
17+
tf2::Vector3 PositionSpline::getAcc(double time) { return tf2::Vector3(x_.acc(time), y_.acc(time), z_.acc(time)); }
2418

2519
SmoothSpline *PositionSpline::x() { return &x_; }
2620

0 commit comments

Comments
 (0)