Skip to content

Commit

Permalink
parsers/mjcf: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Sep 22, 2024
1 parent 0a7f045 commit f21e4f7
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/parsers/mjcf/mjcf-graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,6 @@ namespace pinocchio
{
for (const ptree::value_type & v : el)
{
// std::cout << v.first << " " << v.second << std::endl;

std::string type = v.first;
// List of supported constraints from mjcf description
// equality -> connect
Expand All @@ -751,7 +749,7 @@ namespace pinocchio
// warning: joint, flex, distance, weld
if (type != "connect")
{
std::cout << "Warning - Constraint " << type << " is not supported" << std::endl;
// TODO(jcarpent): support extra constraint types such as joint, flex, distance, weld.
continue;
}

Expand Down Expand Up @@ -782,15 +780,6 @@ namespace pinocchio
if (anchor)
eq.anchor = internal::getVectorFromStream<3>(*anchor);

// // print what constraint is being added
// std::cout << "MjcfEquality: {" << std::endl;
// std::cout << " Name: " << eq.name << std::endl;
// std::cout << " Type: " << eq.type << std::endl;
// std::cout << " Body1: " << eq.body1 << std::endl;
// std::cout << " Body2: " << eq.body2 << std::endl;
// std::cout << " Anchor: [" << eq.anchor.transpose() << "]" << std::endl;
// std::cout << "}" << std::endl;

mapOfEqualities.insert(std::make_pair(eq.name, eq));
}
}
Expand Down

0 comments on commit f21e4f7

Please sign in to comment.