Skip to content

Commit c234a00

Browse files
authored
Merge pull request #63 from robohouse-delft/expose-get-io-signals
Add RWSClient::getIOSignals().
2 parents b4f2def + 73e268d commit c234a00

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

include/abb_librws/rws_client.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,13 @@ class RWSClient : public POCOClient
357357
*/
358358
RWSResult getConfigurationInstances(const std::string topic, const std::string type);
359359

360+
/**
361+
* \brief A method for retrieving all available IO signals on the controller.
362+
*
363+
* \return RWSResult containing the result.
364+
*/
365+
RWSResult getIOSignals();
366+
360367
/**
361368
* \brief A method for retrieving the value of an IO signal.
362369
*

src/rws_client.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ RWSClient::RWSResult RWSClient::getConfigurationInstances(const std::string topi
113113
return evaluatePOCOResult(httpGet(uri_), evaluation_conditions_);
114114
}
115115

116+
RWSClient::RWSResult RWSClient::getIOSignals()
117+
{
118+
std::string const & uri = SystemConstants::RWS::Resources::RW_IOSYSTEM_SIGNALS;
119+
120+
evaluation_conditions_.reset();
121+
evaluation_conditions_.parse_message_into_xml = true;
122+
evaluation_conditions_.accepted_outcomes.push_back(HTTPResponse::HTTP_OK);
123+
124+
return evaluatePOCOResult(httpGet(uri), evaluation_conditions_);
125+
}
126+
116127
RWSClient::RWSResult RWSClient::getIOSignal(const std::string iosignal)
117128
{
118129
uri_ = generateIOSignalPath(iosignal);

0 commit comments

Comments
 (0)