Skip to content

Commit

Permalink
README fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Jun 29, 2024
1 parent 5bf7431 commit c8572be
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class FibonacciState(ActionState):
self.create_goal_handler, # cb to create the goal
None, # outcomes. Includes (SUCCEED, ABORT, CANCEL)
self.response_handler, # cb to process the response
self.print_feedback
self.print_feedback # cb to process the feedback
)

def create_goal_handler(self, blackboard: Blackboard) -> Fibonacci.Goal:
Expand Down Expand Up @@ -888,9 +888,16 @@ class FibonacciState : public yasmin_ros::ActionState<Fibonacci> {
public:
FibonacciState()
: yasmin_ros::ActionState<Fibonacci>(
"/fibonacci",

"/fibonacci", // action name

// # cb to create the goal
std::bind(&FibonacciState::create_goal_handler, this, _1),
// # cb to process the response

std::bind(&FibonacciState::response_handler, this, _1, _2),

// cb to process the feedback
std::bind(&FibonacciState::print_feedback, this, _1, _2)){};

Fibonacci::Goal create_goal_handler(
Expand Down
9 changes: 8 additions & 1 deletion yasmin_demo/src/action_client_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,16 @@ class FibonacciState : public yasmin_ros::ActionState<Fibonacci> {
public:
FibonacciState()
: yasmin_ros::ActionState<Fibonacci>(
"/fibonacci",

"/fibonacci", // action name

// # cb to create the goal
std::bind(&FibonacciState::create_goal_handler, this, _1),
// # cb to process the response

std::bind(&FibonacciState::response_handler, this, _1, _2),

// cb to process the feedback
std::bind(&FibonacciState::print_feedback, this, _1, _2)){};

Fibonacci::Goal create_goal_handler(
Expand Down
2 changes: 1 addition & 1 deletion yasmin_demo/yasmin_demo/action_client_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self) -> None:
self.create_goal_handler, # cb to create the goal
None, # outcomes. Includes (SUCCEED, ABORT, CANCEL)
self.response_handler, # cb to process the response
self.print_feedback
self.print_feedback # cb to process the feedback
)

def create_goal_handler(self, blackboard: Blackboard) -> Fibonacci.Goal:
Expand Down

0 comments on commit c8572be

Please sign in to comment.