set_mode
Service type: fourier_msgs/srv/SetMode
File
fourier_msgs/srv/SetMode.srv
Description
Switches GRW navigation between mapping and localization.
Request
| Element | Type | Description |
|---|---|---|
| mode | string | Target mode. mapping, slam, and 0 select mapping; localization, loc, and 1 select localization. The value must match exactly. |
Response
| Element | Type | Description |
|---|---|---|
| success | bool | Whether the switch succeeded. |
| result | uint32 | 0: success; 2: failure, including an unsupported mode. |
| message | string | ok on success, or invalid mode on failure. |
Switching behavior
- The current mode record is updated only after a successful switch.
mapping,slam, and0request mapping;localization,loc, and1request localization.