File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed
bitbots_motion/bitbots_splines/src/Spline Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff 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
4438tf2::Vector3 PoseSpline::getEulerAngles (double time) {
4539 return tf2::Vector3 (roll_.pos (time), pitch_.pos (time), yaw_.pos (time));
Original file line number Diff line number Diff 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
2519SmoothSpline *PositionSpline::x () { return &x_; }
2620
You can’t perform that action at this time.
0 commit comments