Skip to main content

set_mode

Service type: fourier_msgs/srv/SetMode

File​

fourier_msgs/srv/SetMode.srv

Description​

Switches GRW navigation between mapping and localization.

Request​

ElementTypeDescription
modestringTarget mode. mapping, slam, and 0 select mapping; localization, loc, and 1 select localization. The value must match exactly.

Response​

ElementTypeDescription
successboolWhether the switch succeeded.
resultuint320: success; 2: failure, including an unsupported mode.
messagestringok on success, or invalid mode on failure.

Switching behavior​

  • The current mode record is updated only after a successful switch.
  • mapping, slam, and 0 request mapping; localization, loc, and 1 request localization.