Skip to content

Commit

Permalink
use trajopt namespace to remove ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
fangeugene authored and joschu committed Jun 24, 2013
1 parent 0c1f3a7 commit 342c9f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/trajopt/bullet_collision_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,9 @@ void BulletCollisionChecker::AddKinBody(const OR::KinBodyPtr& body) {
int filterGroup = body->IsRobot() ? RobotFilter : KinBodyFilter;
const vector<OR::KinBody::LinkPtr> links = body->GetLinks();

SetUserData(*body, "bt", cd);
trajopt::SetUserData(*body, "bt", cd);

bool useTrimesh = GetUserData(*body, "bt_use_trimesh");
bool useTrimesh = trajopt::GetUserData(*body, "bt_use_trimesh");
BOOST_FOREACH(const OR::KinBody::LinkPtr& link, links) {
if (link->GetGeometries().size() > 0) {
COWPtr new_cow = CollisionObjectFromLink(link, useTrimesh);
Expand Down Expand Up @@ -553,7 +553,7 @@ void BulletCollisionChecker::RemoveKinBody(const OR::KinBodyPtr& body) {
m_link2cow.erase(link.get());
}
}
RemoveUserData(*body, "bt");
trajopt::RemoveUserData(*body, "bt");
}

template <typename T>
Expand All @@ -579,7 +579,7 @@ void BulletCollisionChecker::AddAndRemoveBodies(const vector<KinBodyPtr>& curVec
vector<KinBodyPtr> toRemove;
SetDifferences(curVec, prevVec, toAdd, toRemove);
BOOST_FOREACH(const KinBodyPtr& body, toAdd) {
assert(!GetUserData(*body, "bt"));
assert(!trajopt::GetUserData(*body, "bt"));
AddKinBody(body);
}
BOOST_FOREACH(const KinBodyPtr& body, toRemove) {
Expand Down

0 comments on commit 342c9f7

Please sign in to comment.