Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and florent-lamiraux committed Jan 22, 2025
1 parent eba9bd0 commit ec1884b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ void Device::load(Archive& ar, const unsigned int version) {
grippers_.reserve(grippers.size());
std::transform(grippers.begin(), grippers.end(), grippers_.begin(),
[this](FrameIndex i) -> GripperPtr_t {
return Gripper::create(model_->frames[i].name, weakPtr_.lock());
return Gripper::create(model_->frames[i].name,
weakPtr_.lock());
});
createData();
createGeomData();
Expand Down
4 changes: 3 additions & 1 deletion src/gripper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const Transform3s& Gripper::objectPositionInJoint() const {
return model.frames[fid_].placement;
}

GripperPtr_t Gripper::clone() const { return Gripper::create(name_, device_.lock()); }
GripperPtr_t Gripper::clone() const {
return Gripper::create(name_, device_.lock());
}

std::ostream& Gripper::print(std::ostream& os) const {
os << "name :" << name() << std::endl;
Expand Down

0 comments on commit ec1884b

Please sign in to comment.