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.

Definition at line 779 of file execute_policy.hpp.

Public Constructors​

GripperStreamer()​

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

Declaration at line 782 of file execute_policy.hpp, definition at line 2496 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 785 of file execute_policy.hpp, definition at line 2501 of file execute_policy.cpp.

stream()​

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

Move 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 790 of file execute_policy.hpp, definition at line 2506 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 794 of file execute_policy.hpp, definition at line 2518 of file execute_policy.cpp.

Private Member Attributes​

client_​

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

Definition at line 796 of file execute_policy.hpp.

dt_​

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

Definition at line 797 of file execute_policy.hpp.

last_target_​

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

Definition at line 798 of file execute_policy.hpp.

plan_​

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

Definition at line 799 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.15.0.