Skip to content

Commit

Permalink
finer tune
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Sep 9, 2023
1 parent 3a2d40f commit b9cdf27
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ namespace
}

constexpr auto DEFAULT_RATE_S = 0.1;
constexpr auto DEFAULT_SQUARES_X = 3;
constexpr auto DEFAULT_SQUARES_Y = 3;
constexpr auto DEFAULT_SQUARES_X = 8;
constexpr auto DEFAULT_SQUARES_Y = 10;

class OpenraveYarpIroning : public OpenRAVE::ModuleBase,
public yarp::os::PeriodicThread
Expand Down Expand Up @@ -215,7 +215,7 @@ class OpenraveYarpIroning : public OpenRAVE::ModuleBase,
// yCInfo(ORYPS) << T_base_object.trans.x << T_base_object.trans.y << T_base_object.trans.z << "| TCP" << tcp.trans.x << tcp.trans.y << tcp.trans.z;
double dist = std::sqrt(std::pow(T_base_object.trans.x - tcp.trans.x, 2) + std::pow(T_base_object.trans.y - tcp.trans.y, 2) + std::pow(T_base_object.trans.z - tcp.trans.z, 2));

if (dist < 0.1)
if (dist < 0.05)
{
yCInfo(ORYPS) << "Erase" << _objKinBodyPtrs[objKinBodyIdx]->GetName();
_penv->Remove(_objKinBodyPtrs[objKinBodyIdx]);
Expand Down

0 comments on commit b9cdf27

Please sign in to comment.