Skip to content

Commit

Permalink
Merge branch 'Week10_HW' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshikakde committed Nov 8, 2021
2 parents 16b41b9 + 3617c33 commit 738de89
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,37 @@ rosrun beginner_tutorials talker
```
rosrun beginner_tutorials listener
```
## How to run the code(with launch)

```
cd catkin_ws
```
2)Source the workspace

```
sourcedevel/setup.bash
```
3) In a terminal, run
```
roslaunch beginner_tutorials talker_chatter.launch platform_name:="my_laptop"
```

### Parameters

- platform_name : default="sakshi"
- publisher_topic_name : default="/chatter"
- publisher_rate : default = 20
- service_name : default="add_two_ints"
- subscriber_topic_name : default="/chatter"


## ROS Service from command line
Use the following command to call the ros service from terminal:

```
rosservice call /add_two_ints "a: 10
b: 30"
```


0 comments on commit 738de89

Please sign in to comment.