Skip to content

Commit

Permalink
ironing clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Sep 6, 2023
1 parent d96a81f commit 404a7e3
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,25 +109,25 @@ class OpenraveYarpIroning : public OpenRAVE::ModuleBase,
int squares = options.check("squares", yarp::os::Value(DEFAULT_SQUARES), "number of squares").asInt32();
yCInfo(ORYPS) << "Squares:" << squares;

RAVELOG_INFO("penv: %p\n", GetEnv().get());
OpenRAVE::EnvironmentBasePtr penv = GetEnv();
_penv = GetEnv();
RAVELOG_INFO("penv: %p\n", _penv.get());

/*_objPtr = penv->GetKinBody("object");
/*_objPtr = _penv->GetKinBody("object");
if (!_objPtr)
{
std::fprintf(stderr, "error: object \"object\" does not exist.\n");
}
std::printf("sucess: object \"object\" exists.\n");
_wall = penv->GetKinBody("wall");
_wall = _penv->GetKinBody("wall");
if (!_wall)
{
std::fprintf(stderr, "error: object \"wall\" does not exist.\n");
}
std::printf("sucess: object \"wall\" exists.\n");*/

std::vector<OpenRAVE::RobotBasePtr> robots;
penv->GetRobots(robots);
_penv->GetRobots(robots);
if(robots.size()==0)
{
yCError(ORYPS) << "No robot yet"; // default: teo
Expand Down Expand Up @@ -277,6 +277,8 @@ class OpenraveYarpIroning : public OpenRAVE::ModuleBase,
std::vector<int> sqPainted;
yarp::os::Semaphore sqPaintedSemaphore;

OpenRAVE::EnvironmentBasePtr _penv;

OpenRAVE::Transform T_base_object;
OpenRAVE::KinBodyPtr _objPtr;
OpenRAVE::KinBodyPtr _wall;
Expand Down

0 comments on commit 404a7e3

Please sign in to comment.