Commit 5ecb60c
Add a service for enabling/disabling the collision monitor (#5493)
* Added std_srvs package to dependencies
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Declared service and callback for enabling/disabling collision monitor
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Declared a variable to store collision monitor enable/disable state
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Added initialization for collision monitor enable/disable service
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Implemented service callback for collision monitor enable/disable service
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Removed std_srvs package dependency
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Added Toggle interface
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Replaced Trigger interface with the new Toggle interface
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Added default initialization for enabled flag
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Fixed toggle service name
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Updated toggle logic for collision monitor
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Added a new line at the end of file
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Update nav2_collision_monitor/src/collision_monitor_node.cpp
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Update nav2_collision_monitor/src/collision_monitor_node.cpp
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Added enabled check for logging
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Added a unit test for toggle service
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Made the getter const and added a comment
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Replaced rclcpp::spin_some
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
---------
Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>1 parent a923648 commit 5ecb60c
File tree
5 files changed
+109
-4
lines changed5 files changed
+109
-4
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
203 | 214 | | |
204 | 215 | | |
205 | 216 | | |
| |||
227 | 238 | | |
228 | 239 | | |
229 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
230 | 247 | | |
231 | 248 | | |
232 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
473 | 480 | | |
474 | 481 | | |
475 | 482 | | |
476 | | - | |
| 483 | + | |
477 | 484 | | |
478 | 485 | | |
479 | 486 | | |
| |||
500 | 507 | | |
501 | 508 | | |
502 | 509 | | |
503 | | - | |
| 510 | + | |
504 | 511 | | |
505 | 512 | | |
506 | 513 | | |
| |||
653 | 660 | | |
654 | 661 | | |
655 | 662 | | |
656 | | - | |
| 663 | + | |
657 | 664 | | |
658 | 665 | | |
659 | 666 | | |
660 | 667 | | |
661 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
662 | 683 | | |
663 | 684 | | |
664 | 685 | | |
| |||
Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| |||
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
183 | 191 | | |
184 | 192 | | |
185 | 193 | | |
| |||
215 | 223 | | |
216 | 224 | | |
217 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
218 | 229 | | |
219 | 230 | | |
220 | 231 | | |
| |||
249 | 260 | | |
250 | 261 | | |
251 | 262 | | |
| 263 | + | |
| 264 | + | |
252 | 265 | | |
253 | 266 | | |
254 | 267 | | |
| |||
745 | 758 | | |
746 | 759 | | |
747 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
748 | 777 | | |
749 | 778 | | |
750 | 779 | | |
| |||
786 | 815 | | |
787 | 816 | | |
788 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
789 | 851 | | |
790 | 852 | | |
791 | 853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments