Skip to content

Commit 7830165

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

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

include/hpp/manipulation/handle.hh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,15 @@ class HPP_MANIPULATION_DLLAPI Handle {
171171

172172
/// Get approaching direction for pregrasp
173173
/// Default is x-axis (1, 0, 0)
174-
const vector3_t& approachingDirection() const { return approachingDirection_; }
174+
const vector3_t& approachingDirection() const {
175+
return approachingDirection_;
176+
}
175177

176178
/// Set approaching direction for pregrasp
177179
/// \param dir unit vector defining the approach direction in handle frame
178-
void approachingDirection(const vector3_t& dir) { approachingDirection_ = dir; }
180+
void approachingDirection(const vector3_t& dir) {
181+
approachingDirection_ = dir;
182+
}
179183

180184
protected:
181185
/// Constructor

src/handle.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ ImplicitPtr_t Handle::createPreGrasp(const GripperPtr_t& gripper,
205205
const value_type& shift,
206206
std::string n) const {
207207
Transform3s M = gripper->objectPositionInJoint() *
208-
Transform3s(I3, shift*approachingDirection_);
208+
Transform3s(I3, shift * approachingDirection_);
209209
if (n.empty())
210210
n = "Pregrasp_ " + maskToStr(mask_) + "_" + name() + "_" + gripper->name();
211211
ImplicitPtr_t result(Implicit::create(

0 commit comments

Comments
 (0)