Skip to content

Commit

Permalink
[InstanceManagerClient] add missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Jun 28, 2024
1 parent 9e8f943 commit 5c84c7d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/cpp_API/ActionClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ <h2 id="details">Detailed Description</h2>
<p>The ActionClient class provides an abstraction of mementar actions ROS service.</p>
<p>The mementar actions service allows the exploration of actions contained by mementar core.</p>
<p>This class is based on <a href="ClientBase.html">ClientBase</a> and so ensure a persistent connection
with ontologenius/class service. The persistent connection ensures a minimal response time. A reconnection
with mementar/actions service. The persistent connection ensures a minimal response time. A reconnection
logic is implemented in the event that the persistent connection fails. </p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/cpp_API/FactClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h2 id="details">Detailed Description</h2>
<p>The FactClient class provides an abstraction of mementar facts ROS service.</p>
<p>The mementar facts service allows the exploration of facts contained by mementar core.</p>
<p>This class is based on <a href="ClientBase.html">ClientBase</a> and so ensure a persistent connection
with ontologenius/class service. The persistent connection ensures a minimal response time. A reconnection
with mementar/facts service. The persistent connection ensures a minimal response time. A reconnection
logic is implemented in the event that the persistent connection fails. </p>
</div>

Expand Down
11 changes: 10 additions & 1 deletion docs/cpp_API/InstanceManagerClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ <h2 id="public-functions">Public Functions</h2>
std::string&amp; <i>name</i>)
</td>
</tr>
<tr>
<td class="memItemLeft rightAlign topAlign"> bool </td>
<td class="memItemRight bottomAlign"><b><a href="InstanceManagerClient.html#reset">reset</a></b>()</td>
</tr>
<tr>
<td class="memItemLeft rightAlign topAlign"> bool </td>
<td class="memItemRight bottomAlign"><b><a href="InstanceManagerClient.html#save">save</a></b>(const
Expand All @@ -147,7 +151,7 @@ <h2 id="details">Detailed Description</h2>
<p>The InstanceManagerClient class provides an abstraction of mementar instance management ROS service.</p>
<p>The mementar instance management service allows the management of one specific mementar instance.</p>
<p>This class is based on <a href="ClientBase.html">ClientBase</a> and so ensure a persistent connection
with ontologenius/class service. The persistent connection ensures a minimal response time. A reconnection
with mementar service. The persistent connection ensures a minimal response time. A reconnection
logic is implemented in the event that the persistent connection fails. </p>
</div>

Expand All @@ -162,6 +166,11 @@ <h3 class="fn" id="InstanceManagerClient"><a name="InstanceManagerClient"></a>In
<i>name</i> should be defined as &quot;&quot;.
</p>

<h3 class="fn" id="reset"><a name="reset"></a><span class="type">bool</span> InstanceManagerClient::<span
class="name">reset</span>()
</h3>
<p>Resets completly the timeline.</p>

<h3 class="fn" id="save"><a name="save"></a><span class="type">bool</span> InstanceManagerClient::<span
class="name">save</span>(const <span class="type">std::string</span>&amp; <i>path</i>)
</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace mementar {
public:
explicit InstanceManagerClient(const std::string& name) : ClientBase(name.empty() ? "manage_instance" : "manage_instance/" + name) {}

bool reset();
bool save(const std::string& name);
bool draw(const std::string& name);

Expand Down
7 changes: 7 additions & 0 deletions src/API/mementar/clients/InstanceManagerClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
#include <string>

namespace mementar {

bool InstanceManagerClient::reset()
{
return callBool("reset", "");
}

bool InstanceManagerClient::save(const std::string& name)
{
return callBool("save", name);
Expand All @@ -12,4 +18,5 @@ namespace mementar {
{
return callBool("draw", name);
}

} // namespace mementar

0 comments on commit 5c84c7d

Please sign in to comment.