Skip to content

Commit

Permalink
Instantiate a new ActionClient
Browse files Browse the repository at this point in the history
  • Loading branch information
esteve committed Nov 8, 2023
1 parent 6d08801 commit a0f9da4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rclrs/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ impl<T> ServerGoalHandle<T>
where
T: rosidl_runtime_rs::Action,
{
pub fn new(rcl_handle: Arc<rcl_action_goal_handle_t>) {}
pub fn new(rcl_handle: Arc<rcl_action_goal_handle_t>) -> Self {
Self {
rcl_handle,
_marker: Default::default(),
}
}

pub fn is_canceling(&self) -> bool {
false
Expand Down

0 comments on commit a0f9da4

Please sign in to comment.