Skip to main content

GripperStreamer Class

Declaration​

class moveit_pro::behaviors::ExecutePolicy::GripperStreamer { ... }

Public Constructors Index​

GripperStreamer (GripperClientInterface *client, double dt)

Public Member Functions Index​

voidsetPlan (GripperPlan plan)

Replace the committed gripper trajectory with this chunk's plan. More...

voidstream (double now_on_clock)

Private Member Functions Index​

voidsend (double target)

Send a gripper target, fire-and-forget, skipping one within the dedup tolerance of the last sent. More...

Private Member Attributes Index​

GripperClientInterface *client_
doubledt_
std::optional< double >last_target_
std::optional< GripperPlan >plan_

Description​

Plays a chunk's GripperPlan out to the gripper action one committed step at a time. Owns the per-run streaming state (the current plan and the last target sent) so streamPolicyChunks does not carry it inline. Holds a non-owning pointer to the gripper client, which the behavior keeps alive for the whole run and which is null when no gripper is configured, in which case streaming is a no-op.

Definition at line 575 of file execute_policy.hpp.

Public Constructors​

GripperStreamer()​

moveit_pro::behaviors::ExecutePolicy::GripperStreamer::GripperStreamer (GripperClientInterface * client, double dt)

Declaration at line 578 of file execute_policy.hpp, definition at line 1272 of file execute_policy.cpp.

Public Member Functions​

setPlan()​

void moveit_pro::behaviors::ExecutePolicy::GripperStreamer::setPlan (GripperPlan plan)

Replace the committed gripper trajectory with this chunk's plan.

Declaration at line 581 of file execute_policy.hpp, definition at line 1277 of file execute_policy.cpp.

stream()​

void moveit_pro::behaviors::ExecutePolicy::GripperStreamer::stream (double now_on_clock)

Drive the gripper to the committed step the trajectory clock has reached, holding the final step once the window is past. Before the seam it commands the first committed target, so the gripper leads toward the seam pose. A no-op when no plan is set or no gripper is configured.

Declaration at line 586 of file execute_policy.hpp, definition at line 1282 of file execute_policy.cpp.

Private Member Functions​

send()​

void moveit_pro::behaviors::ExecutePolicy::GripperStreamer::send (double target)

Send a gripper target, fire-and-forget, skipping one within the dedup tolerance of the last sent.

Declaration at line 590 of file execute_policy.hpp, definition at line 1294 of file execute_policy.cpp.

Private Member Attributes​

client_​

GripperClientInterface* moveit_pro::behaviors::ExecutePolicy::GripperStreamer::client_

Definition at line 592 of file execute_policy.hpp.

dt_​

double moveit_pro::behaviors::ExecutePolicy::GripperStreamer::dt_

Definition at line 593 of file execute_policy.hpp.

last_target_​

std::optional<double> moveit_pro::behaviors::ExecutePolicy::GripperStreamer::last_target_

Definition at line 594 of file execute_policy.hpp.

plan_​

std::optional<GripperPlan> moveit_pro::behaviors::ExecutePolicy::GripperStreamer::plan_

Definition at line 595 of file execute_policy.hpp.


The documentation for this class was generated from the following files:


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.