Skip to content
Snippets Groups Projects
Commit 21ae267e authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Reimplement Device::removeJoints (some work is missing)

parent 9152c19a
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,9 @@ namespace hpp {
FrameIndices_t robotFrames (const std::string& robotName) const;
void removeJoints(const std::vector<std::string>& jointNames,
Configuration_t referenceConfig);
core::Container <HandlePtr_t> handles;
core::Container <GripperPtr_t> grippers;
core::Container <JointAndShapes_t> jointAndShapes;
......
......@@ -124,6 +124,16 @@ namespace hpp {
return frameIndices;
}
void Device::removeJoints(const std::vector<std::string>& jointNames,
Configuration_t referenceConfig)
{
Parent_t::removeJoints(jointNames, referenceConfig);
for (auto& pair : grippers.map)
pair.second = pinocchio::Gripper::create(pair.second->name(), self_);
// TODO update handles and jointAndShapes
}
std::ostream& Device::print (std::ostream& os) const
{
Parent_t::print (os);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment