Skip to content

Commit

Permalink
demos fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Jul 22, 2024
1 parent 976bab9 commit 1d8c92c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ There are some examples, for both Python and C++, that can be found in [yasmin_d
#### Vanilla Demo (FSM)

```shell
$ ros2 run yasmin_demos yasmin_demos.py
$ ros2 run yasmin_demos yasmin_demo.py
```

<p align="center">
Expand Down Expand Up @@ -108,7 +108,7 @@ class BarState(State):
# main
def main():

print("yasmin_demos")
print("yasmin_demo")

# init ROS 2
rclpy.init()
Expand All @@ -134,7 +134,7 @@ def main():
)

# pub FSM info
YasminViewerPub("yasmin_demos", sm)
YasminViewerPub("yasmin_demo", sm)

# execute FSM
outcome = sm()
Expand Down Expand Up @@ -627,7 +627,7 @@ if __name__ == "__main__":
#### Vanilla Demo

```shell
$ ros2 run yasmin_demos yasmin_demos
$ ros2 run yasmin_demos yasmin_demo
```

<details>
Expand Down Expand Up @@ -691,7 +691,7 @@ public:

int main(int argc, char *argv[]) {

std::cout << "yasmin_demos\n";
std::cout << "yasmin_demo\n";
rclcpp::init(argc, argv);

// create a state machine
Expand Down
2 changes: 1 addition & 1 deletion yasmin_demos/src/yasmin_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class BarState : public yasmin::State {

int main(int argc, char *argv[]) {

std::cout << "yasmin_demos\n";
std::cout << "yasmin_demo\n";
rclcpp::init(argc, argv);

// create a state machine
Expand Down
4 changes: 2 additions & 2 deletions yasmin_demos/yasmin_demos/yasmin_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def execute(self, blackboard: Blackboard) -> str:
# main
def main():

print("yasmin_demos")
print("yasmin_demo")

# init ROS 2
rclpy.init()
Expand All @@ -84,7 +84,7 @@ def main():
)

# pub FSM info
YasminViewerPub("yasmin_demos", sm)
YasminViewerPub("yasmin_demo", sm)

# execute FSM
outcome = sm()
Expand Down

0 comments on commit 1d8c92c

Please sign in to comment.