Skip to content
Snippets Groups Projects
Commit 81805e29 authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

added isRequested to TCPControlUnit

parent c2ccac6f
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ namespace armarx
{
auto nodesets = localReportRobot->getRobotNodeSets();
for (RobotNodeSetPtr& set : nodesets)
for (RobotNodeSetPtr & set : nodesets)
{
if (set->getTCP())
{
......@@ -103,7 +103,7 @@ namespace armarx
boost::is_any_of(","),
boost::token_compress_on);
for (auto& name : nodesetNames)
for (auto & name : nodesetNames)
{
auto node = localReportRobot->getRobotNode(name);
......@@ -288,6 +288,12 @@ namespace armarx
}
bool TCPControlUnit::isRequested(const Ice::Current& c)
{
// no lock needed to read a single bool value.
return requested;
}
void TCPControlUnit::periodicExec()
{
......
......@@ -146,6 +146,8 @@ namespace armarx
*/
void release(const Ice::Current& c = Ice::Current());
bool isRequested(const Ice::Current& c = Ice::Current());
protected:
void onInitComponent();
......
......@@ -53,6 +53,11 @@ module armarx
**/
void setTCPVelocity(string robotNodeSetName, string tcpNodeName, FramedDirectionBase translationVelocity, FramedDirectionBase orientationVelocityRPY);
/**
* @brief returns if the TCPControlUnit is requested.
* @return Request status.
*/
bool isRequested();
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment