Skip to content

Commit

Permalink
add main with hardcoded open
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Sep 5, 2023
1 parent a4bcefb commit e9e9c9a
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,16 @@ class OpenraveYarpIroning : public OpenRAVE::ModuleBase,
RAVELOG_INFO("module unloaded from environment\n");
}

/*int main(const string& cmd) {
RAVELOG_INFO("module initialized cmd; %s\n", cmd.c_str());
int main(const std::string& cmd)
{
RAVELOG_INFO("module initialized with \"%s\"\n", cmd.c_str());
// hard-coding "open"
std::istringstream sinput("open");
std::ostringstream sout;
if( ! OpenRAVE::InterfaceBase::SendCommand(sout,sinput) )
return 1;
return 0;
}*/
}

bool Open(std::ostream &sout, std::istream &sinput)
{
Expand Down

0 comments on commit e9e9c9a

Please sign in to comment.