Skip to content

Commit 93e597a

Browse files
committed
spinSome
1 parent fc152e5 commit 93e597a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

meta/callbacks.xml

+13
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,19 @@
372372
<return>
373373
</return>
374374
</command>
375+
<command name="spinSome">
376+
<description>Calls spin_some(node).</description>
377+
<categories>
378+
<category name="action" />
379+
</categories>
380+
<see-also>
381+
<!--command name="..." /-->
382+
</see-also>
383+
<params>
384+
</params>
385+
<return>
386+
</return>
387+
</command>
375388
<command name="sendGoal">
376389
<description>Send a goal using the specified action client.</description>
377390
<categories>

src/sim_ros2_interface.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,11 @@ class Plugin : public sim::Plugin
497497
actionClientProxy->wr_opt.uint8array_as_string = true;
498498
}
499499

500+
void spinSome(spinSome_in *in, spinSome_out *out)
501+
{
502+
rclcpp::spin_some(node);
503+
}
504+
500505
void sendGoal(sendGoal_in *in, sendGoal_out *out)
501506
{
502507
ActionClientProxy *actionClientProxy = actionClientHandles.get(in->actionClientHandle);

0 commit comments

Comments
 (0)