Kachaka API v3.18.1

v3.18.1

Kachaka API はロボット上の gRPC(kachaka_api.KachakaApi)です。StartCommand は command の種類ごとに分けて記載しています。

ActivateLaserScan

kachaka_api.KachakaApi/ActivateLaserScan unary

指定した秒数だけレーザーセンサーを起動します。duration_sec は正の値にしてください。

Request
FieldTypeNotes
duration_secnumberレーザーセンサーを起動する秒数です。正の値を指定してください。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/ActivateLaserScan

Request samples

{
  "duration_sec": 0.0
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"duration_sec": 0.0}' <hostname>:26400 kachaka_api.KachakaApi/ActivateLaserScan

AddSound

kachaka_api.KachakaApi/AddSound unary

効果音を追加します。

Request
FieldTypeNotes
namestring表示名です。
datastringバイナリデータです(JSON では base64 です)。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
sound_idstring効果音 ID です。
rpc kachaka_api.KachakaApi/AddSound

Request samples

{
  "name": "",
  "data": ""
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"name": "", "data": ""}' <hostname>:26400 kachaka_api.KachakaApi/AddSound

CancelCommand

kachaka_api.KachakaApi/CancelCommand unary

実行中のタスクを停止します。

Request
FieldTypeNotes
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
commandCommand実行するコマンドです。oneof のうち 1 つを指定します。
command.move_shelf_commandMoveShelfCommand家具を目的地へ運ぶコマンドです。
command.move_shelf_command.target_shelf_idstring対象の家具 ID です。
command.move_shelf_command.destination_location_idstring運び先の目的地 ID です。
command.move_shelf_command.undock_on_destinationboolean到着後に家具を置くかどうかを指定します。
command.return_shelf_commandReturnShelfCommand家具を片付け先へ戻すコマンドです。
command.return_shelf_command.target_shelf_idstring対象の家具 ID です。
command.undock_shelf_commandUndockShelfCommand家具を置くコマンドです。
command.undock_shelf_command.target_shelf_idstring対象の家具 ID です。要求時は空のままで構いません。状態や結果を取得する時点で、置いた家具の ID が入ります。
command.move_to_location_commandMoveToLocationCommand目的地へ移動するコマンドです。
command.move_to_location_command.target_location_idstring目的地 ID です。
command.move_to_location_command.source_location_idstring移動の開始地点にする目的地 ID です。空文字の場合は現在位置から移動します。
command.return_home_commandReturnHomeCommand充電ドックへ戻るコマンドです。
command.dock_shelf_commandDockShelfCommand家具を載せるコマンドです。
command.speak_commandSpeakCommand発話コマンドです。
command.speak_command.textstring発話する文章です。
command.move_to_pose_commandMoveToPoseCommand座標指定で移動するコマンドです。
command.move_to_pose_command.xnumberX 座標(メートル)です。
command.move_to_pose_command.ynumberY 座標(メートル)です。
command.move_to_pose_command.yawnumber向き(ラジアン)です。
command.lock_commandLockCommandその場で待機するコマンドです。
command.lock_command.duration_secnumber秒数です。
command.move_forward_commandMoveForwardCommand前後移動コマンドです。
command.move_forward_command.distance_meternumber進む距離(メートル)です。正の値は前進、負の値は後退です。
command.move_forward_command.speednumber速度(メートル毎秒)です。
command.move_forward_command.mute_sensorsbooleanセンサーによる停止を無効にするかどうかを指定します。
command.rotate_in_place_commandRotateInPlaceCommandその場回転コマンドです。
command.rotate_in_place_command.angle_radiannumber回転角(ラジアン)です。
command.dock_any_shelf_with_registration_commandDockAnyShelfWithRegistrationCommand家具を登録しながら載せるコマンドです。Kachaka Pro 専用です。
command.dock_any_shelf_with_registration_command.target_location_idstring目的地 ID です。
command.dock_any_shelf_with_registration_command.dock_forwardboolean前向きに載せるかどうかを指定します。
command.localize_commandLocalizeCommand自己位置推定コマンドです。
command.move_by_velocity_with_muted_sensors_commandMoveByVelocityWithMutedSensorsCommandセンサーを無効にして速度指定で移動するコマンドです。
command.move_by_velocity_with_muted_sensors_command.signed_velocitynumber移動速度(メートル毎秒)です。正の値は前進、負の値は後退です。
command.move_by_velocity_with_muted_sensors_command.move_duration_secnumberその速度で移動する秒数です。
command.depart_from_charger_commandDepartFromChargerCommand充電ドックから離れるコマンドです。
rpc kachaka_api.KachakaApi/CancelCommand

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/CancelCommand

DeleteSound

kachaka_api.KachakaApi/DeleteSound unary

効果音を削除します。

Request
FieldTypeNotes
sound_idstring効果音 ID です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/DeleteSound

Request samples

{
  "sound_id": ""
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"sound_id": ""}' <hostname>:26400 kachaka_api.KachakaApi/DeleteSound

ExportMap

kachaka_api.KachakaApi/ExportMap server-stream

指定したマップのデータを書き出します(サーバストリーム)。

Request
FieldTypeNotes
map_idstringマップ ID です。
Response
FieldTypeNotes
middle_of_streamExportMapResponse_MiddleOfStreamストリーム途中のチャンクです。
middle_of_stream.datastringバイナリデータです(JSON では base64 です)。
end_of_streamExportMapResponse_EndOfStreamストリーム終端です。
end_of_stream.resultResult実行結果です。
end_of_stream.result.successboolean成功したかどうかを示します。
end_of_stream.result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/ExportMap

Request samples

{
  "map_id": ""
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"map_id": ""}' <hostname>:26400 kachaka_api.KachakaApi/ExportMap

GetAutoHomingEnabled

kachaka_api.KachakaApi/GetAutoHomingEnabled unary

充電ドックへ自動で戻る機能が有効かを取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
enabledboolean有効かどうかを示します。
rpc kachaka_api.KachakaApi/GetAutoHomingEnabled

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetAutoHomingEnabled

GetBackCameraRosCameraInfo

kachaka_api.KachakaApi/GetBackCameraRosCameraInfo unary

後方カメラのカメラ情報を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
camera_infoRosCameraInfoカメラの内部パラメータです。
camera_info.headerRosHeaderROS ヘッダです。
camera_info.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
camera_info.header.frame_idstring座標系の名前です。
camera_info.heightinteger高さです。
camera_info.widthinteger幅です。
camera_info.distortion_modelstring歪みモデル名です。
camera_info.Darray<number>歪み係数です。
camera_info.Karray<number>カメラ行列(3x3)です。
camera_info.Rarray<number>回転行列(3x3)です。
camera_info.Parray<number>投影行列(3x4)です。
camera_info.binning_xintegerx方向のビニングです。
camera_info.binning_yintegery方向のビニングです。
camera_info.roiRegionOfInterest画像上の領域です。
camera_info.roi.x_offsetintegerROI の X オフセットです。
camera_info.roi.y_offsetintegerROI の Y オフセットです。
camera_info.roi.heightinteger高さです。
camera_info.roi.widthinteger幅です。
camera_info.roi.do_rectifyboolean歪み補正するかどうかを指定します。
rpc kachaka_api.KachakaApi/GetBackCameraRosCameraInfo

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetBackCameraRosCameraInfo

GetBackCameraRosCompressedImage

kachaka_api.KachakaApi/GetBackCameraRosCompressedImage unary

後方カメラの圧縮画像を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
imageRosCompressedImage画像です。
image.headerRosHeaderROS ヘッダです。
image.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
image.header.frame_idstring座標系の名前です。
image.formatstring圧縮画像のフォーマット名です。
image.datastringバイナリデータです(JSON では base64 です)。
rpc kachaka_api.KachakaApi/GetBackCameraRosCompressedImage

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetBackCameraRosCompressedImage

GetBackCameraRosImage

kachaka_api.KachakaApi/GetBackCameraRosImage unary

後方カメラの画像を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
imageRosImage画像です。
image.headerRosHeaderROS ヘッダです。
image.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
image.header.frame_idstring座標系の名前です。
image.heightinteger高さです。
image.widthinteger幅です。
image.encodingstring画素のエンコーディングです。
image.is_bigendianbooleanビッグエンディアンかどうかを示します。
image.stepinteger1 行あたりのバイト数です。
image.datastringバイナリデータです(JSON では base64 です)。
rpc kachaka_api.KachakaApi/GetBackCameraRosImage

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetBackCameraRosImage

GetBatteryInfo

kachaka_api.KachakaApi/GetBatteryInfo unary

バッテリー残量と充電状態を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
remaining_percentagenumberバッテリー残量(0〜100)です。
power_supply_statusPowerSupplyStatus充電状態です。
power_supply_status.POWER_SUPPLY_STATUS_UNSPECIFIEDenum充電状態が不明です。
power_supply_status.POWER_SUPPLY_STATUS_CHARGINGenum充電中です。
power_supply_status.POWER_SUPPLY_STATUS_DISCHARGINGenum放電中です。
power_supply_status.POWER_SUPPLY_STATUS_NOT_CHARGINGenum充電していません。
power_supply_status.POWER_SUPPLY_STATUS_FULLenum満充電です。
rpc kachaka_api.KachakaApi/GetBatteryInfo

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetBatteryInfo

GetCommandState

kachaka_api.KachakaApi/GetCommandState unary

実行中のコマンドの状態を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
stateCommandStateコマンドの実行状態です。PENDING は待機中、RUNNING は実行中です。
state.COMMAND_STATE_UNSPECIFIEDenum状態が不明です。
state.COMMAND_STATE_PENDINGenum実行中のコマンドはありません。
state.COMMAND_STATE_RUNNINGenumコマンドを実行中です。
commandCommand実行するコマンドです。oneof のうち 1 つを指定します。
command.move_shelf_commandMoveShelfCommand家具を目的地へ運ぶコマンドです。
command.move_shelf_command.target_shelf_idstring対象の家具 ID です。
command.move_shelf_command.destination_location_idstring運び先の目的地 ID です。
command.move_shelf_command.undock_on_destinationboolean到着後に家具を置くかどうかを指定します。
command.return_shelf_commandReturnShelfCommand家具を片付け先へ戻すコマンドです。
command.return_shelf_command.target_shelf_idstring対象の家具 ID です。
command.undock_shelf_commandUndockShelfCommand家具を置くコマンドです。
command.undock_shelf_command.target_shelf_idstring対象の家具 ID です。要求時は空のままで構いません。状態や結果を取得する時点で、置いた家具の ID が入ります。
command.move_to_location_commandMoveToLocationCommand目的地へ移動するコマンドです。
command.move_to_location_command.target_location_idstring目的地 ID です。
command.move_to_location_command.source_location_idstring移動の開始地点にする目的地 ID です。空文字の場合は現在位置から移動します。
command.return_home_commandReturnHomeCommand充電ドックへ戻るコマンドです。
command.dock_shelf_commandDockShelfCommand家具を載せるコマンドです。
command.speak_commandSpeakCommand発話コマンドです。
command.speak_command.textstring発話する文章です。
command.move_to_pose_commandMoveToPoseCommand座標指定で移動するコマンドです。
command.move_to_pose_command.xnumberX 座標(メートル)です。
command.move_to_pose_command.ynumberY 座標(メートル)です。
command.move_to_pose_command.yawnumber向き(ラジアン)です。
command.lock_commandLockCommandその場で待機するコマンドです。
command.lock_command.duration_secnumber秒数です。
command.move_forward_commandMoveForwardCommand前後移動コマンドです。
command.move_forward_command.distance_meternumber進む距離(メートル)です。正の値は前進、負の値は後退です。
command.move_forward_command.speednumber速度(メートル毎秒)です。
command.move_forward_command.mute_sensorsbooleanセンサーによる停止を無効にするかどうかを指定します。
command.rotate_in_place_commandRotateInPlaceCommandその場回転コマンドです。
command.rotate_in_place_command.angle_radiannumber回転角(ラジアン)です。
command.dock_any_shelf_with_registration_commandDockAnyShelfWithRegistrationCommand家具を登録しながら載せるコマンドです。Kachaka Pro 専用です。
command.dock_any_shelf_with_registration_command.target_location_idstring目的地 ID です。
command.dock_any_shelf_with_registration_command.dock_forwardboolean前向きに載せるかどうかを指定します。
command.localize_commandLocalizeCommand自己位置推定コマンドです。
command.move_by_velocity_with_muted_sensors_commandMoveByVelocityWithMutedSensorsCommandセンサーを無効にして速度指定で移動するコマンドです。
command.move_by_velocity_with_muted_sensors_command.signed_velocitynumber移動速度(メートル毎秒)です。正の値は前進、負の値は後退です。
command.move_by_velocity_with_muted_sensors_command.move_duration_secnumberその速度で移動する秒数です。
command.depart_from_charger_commandDepartFromChargerCommand充電ドックから離れるコマンドです。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/GetCommandState

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetCommandState

GetCurrentMapId

kachaka_api.KachakaApi/GetCurrentMapId unary

現在読み込んでいるマップの ID を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
idstring現在のマップ ID です。マップが無い場合は空文字です。
rpc kachaka_api.KachakaApi/GetCurrentMapId

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetCurrentMapId

GetDynamicTransform

kachaka_api.KachakaApi/GetDynamicTransform server-stream

動的な座標変換(TF)を取得します(サーバストリーム)。

Request
FieldTypeNotes
Response
FieldTypeNotes
transformsarray<RosTransformStamped>座標変換の一覧です。
transforms[].headerRosHeaderROS ヘッダです。
transforms[].header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
transforms[].header.frame_idstring座標系の名前です。
transforms[].child_frame_idstring子座標系の名前です。
transforms[].translationVector3平行移動です。
transforms[].translation.xnumber平行移動 X(メートル)です。
transforms[].translation.ynumber平行移動 Y(メートル)です。
transforms[].translation.znumber平行移動 Z(メートル)です。
transforms[].rotationQuaternion回転(クォータニオン)です。
transforms[].rotation.xnumberクォータニオンの x です。
transforms[].rotation.ynumberクォータニオンの y です。
transforms[].rotation.znumberクォータニオンの z です。
transforms[].rotation.wnumberクォータニオンの w です。
rpc kachaka_api.KachakaApi/GetDynamicTransform

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/GetDynamicTransform

GetError

kachaka_api.KachakaApi/GetError unary

現在発生しているエラーコードの一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
error_codesarray<integer>発生中のエラーコードの一覧です。
rpc kachaka_api.KachakaApi/GetError

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetError

GetFrontCameraRosCameraInfo

kachaka_api.KachakaApi/GetFrontCameraRosCameraInfo unary

前方カメラのカメラ情報を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
camera_infoRosCameraInfoカメラの内部パラメータです。
camera_info.headerRosHeaderROS ヘッダです。
camera_info.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
camera_info.header.frame_idstring座標系の名前です。
camera_info.heightinteger高さです。
camera_info.widthinteger幅です。
camera_info.distortion_modelstring歪みモデル名です。
camera_info.Darray<number>歪み係数です。
camera_info.Karray<number>カメラ行列(3x3)です。
camera_info.Rarray<number>回転行列(3x3)です。
camera_info.Parray<number>投影行列(3x4)です。
camera_info.binning_xintegerx方向のビニングです。
camera_info.binning_yintegery方向のビニングです。
camera_info.roiRegionOfInterest画像上の領域です。
camera_info.roi.x_offsetintegerROI の X オフセットです。
camera_info.roi.y_offsetintegerROI の Y オフセットです。
camera_info.roi.heightinteger高さです。
camera_info.roi.widthinteger幅です。
camera_info.roi.do_rectifyboolean歪み補正するかどうかを指定します。
rpc kachaka_api.KachakaApi/GetFrontCameraRosCameraInfo

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetFrontCameraRosCameraInfo

GetFrontCameraRosCompressedImage

kachaka_api.KachakaApi/GetFrontCameraRosCompressedImage unary

前方カメラの圧縮画像を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
imageRosCompressedImage画像です。
image.headerRosHeaderROS ヘッダです。
image.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
image.header.frame_idstring座標系の名前です。
image.formatstring圧縮画像のフォーマット名です。
image.datastringバイナリデータです(JSON では base64 です)。
rpc kachaka_api.KachakaApi/GetFrontCameraRosCompressedImage

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetFrontCameraRosCompressedImage

GetFrontCameraRosImage

kachaka_api.KachakaApi/GetFrontCameraRosImage unary

前方カメラの画像を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
imageRosImage画像です。
image.headerRosHeaderROS ヘッダです。
image.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
image.header.frame_idstring座標系の名前です。
image.heightinteger高さです。
image.widthinteger幅です。
image.encodingstring画素のエンコーディングです。
image.is_bigendianbooleanビッグエンディアンかどうかを示します。
image.stepinteger1 行あたりのバイト数です。
image.datastringバイナリデータです(JSON では base64 です)。
rpc kachaka_api.KachakaApi/GetFrontCameraRosImage

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetFrontCameraRosImage

GetHistoryList

kachaka_api.KachakaApi/GetHistoryList unary

実行履歴の一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
historiesarray<History>実行履歴の一覧です。
histories[].idstring識別子です。
histories[].commandCommand実行するコマンドです。oneof のうち 1 つを指定します。
histories[].command.move_shelf_commandMoveShelfCommand家具を目的地へ運ぶコマンドです。
histories[].command.move_shelf_command.target_shelf_idstring対象の家具 ID です。
histories[].command.move_shelf_command.destination_location_idstring運び先の目的地 ID です。
histories[].command.move_shelf_command.undock_on_destinationboolean到着後に家具を置くかどうかを指定します。
histories[].command.return_shelf_commandReturnShelfCommand家具を片付け先へ戻すコマンドです。
histories[].command.return_shelf_command.target_shelf_idstring対象の家具 ID です。
histories[].command.undock_shelf_commandUndockShelfCommand家具を置くコマンドです。
histories[].command.undock_shelf_command.target_shelf_idstring対象の家具 ID です。要求時は空のままで構いません。状態や結果を取得する時点で、置いた家具の ID が入ります。
histories[].command.move_to_location_commandMoveToLocationCommand目的地へ移動するコマンドです。
histories[].command.move_to_location_command.target_location_idstring目的地 ID です。
histories[].command.move_to_location_command.source_location_idstring移動の開始地点にする目的地 ID です。空文字の場合は現在位置から移動します。
histories[].command.return_home_commandReturnHomeCommand充電ドックへ戻るコマンドです。
histories[].command.dock_shelf_commandDockShelfCommand家具を載せるコマンドです。
histories[].command.speak_commandSpeakCommand発話コマンドです。
histories[].command.speak_command.textstring発話する文章です。
histories[].command.move_to_pose_commandMoveToPoseCommand座標指定で移動するコマンドです。
histories[].command.move_to_pose_command.xnumberX 座標(メートル)です。
histories[].command.move_to_pose_command.ynumberY 座標(メートル)です。
histories[].command.move_to_pose_command.yawnumber向き(ラジアン)です。
histories[].command.lock_commandLockCommandその場で待機するコマンドです。
histories[].command.lock_command.duration_secnumber秒数です。
histories[].command.move_forward_commandMoveForwardCommand前後移動コマンドです。
histories[].command.move_forward_command.distance_meternumber進む距離(メートル)です。正の値は前進、負の値は後退です。
histories[].command.move_forward_command.speednumber速度(メートル毎秒)です。
histories[].command.move_forward_command.mute_sensorsbooleanセンサーによる停止を無効にするかどうかを指定します。
histories[].command.rotate_in_place_commandRotateInPlaceCommandその場回転コマンドです。
histories[].command.rotate_in_place_command.angle_radiannumber回転角(ラジアン)です。
histories[].command.dock_any_shelf_with_registration_commandDockAnyShelfWithRegistrationCommand家具を登録しながら載せるコマンドです。Kachaka Pro 専用です。
histories[].command.dock_any_shelf_with_registration_command.target_location_idstring目的地 ID です。
histories[].command.dock_any_shelf_with_registration_command.dock_forwardboolean前向きに載せるかどうかを指定します。
histories[].command.localize_commandLocalizeCommand自己位置推定コマンドです。
histories[].command.move_by_velocity_with_muted_sensors_commandMoveByVelocityWithMutedSensorsCommandセンサーを無効にして速度指定で移動するコマンドです。
histories[].command.move_by_velocity_with_muted_sensors_command.signed_velocitynumber移動速度(メートル毎秒)です。正の値は前進、負の値は後退です。
histories[].command.move_by_velocity_with_muted_sensors_command.move_duration_secnumberその速度で移動する秒数です。
histories[].command.depart_from_charger_commandDepartFromChargerCommand充電ドックから離れるコマンドです。
histories[].successboolean成功したかどうかを示します。
histories[].error_codeintegerエラーコードです。成功時は 0 です。
histories[].command_executed_timestring|integer実行時刻です。
rpc kachaka_api.KachakaApi/GetHistoryList

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetHistoryList

GetLastCommandResult

kachaka_api.KachakaApi/GetLastCommandResult unary

直前に完了したコマンドの結果を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
resultResult直前のコマンドの実行結果です。直前のコマンドが無い場合は空です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
commandCommand実行するコマンドです。oneof のうち 1 つを指定します。
command.move_shelf_commandMoveShelfCommand家具を目的地へ運ぶコマンドです。
command.move_shelf_command.target_shelf_idstring対象の家具 ID です。
command.move_shelf_command.destination_location_idstring運び先の目的地 ID です。
command.move_shelf_command.undock_on_destinationboolean到着後に家具を置くかどうかを指定します。
command.return_shelf_commandReturnShelfCommand家具を片付け先へ戻すコマンドです。
command.return_shelf_command.target_shelf_idstring対象の家具 ID です。
command.undock_shelf_commandUndockShelfCommand家具を置くコマンドです。
command.undock_shelf_command.target_shelf_idstring対象の家具 ID です。要求時は空のままで構いません。状態や結果を取得する時点で、置いた家具の ID が入ります。
command.move_to_location_commandMoveToLocationCommand目的地へ移動するコマンドです。
command.move_to_location_command.target_location_idstring目的地 ID です。
command.move_to_location_command.source_location_idstring移動の開始地点にする目的地 ID です。空文字の場合は現在位置から移動します。
command.return_home_commandReturnHomeCommand充電ドックへ戻るコマンドです。
command.dock_shelf_commandDockShelfCommand家具を載せるコマンドです。
command.speak_commandSpeakCommand発話コマンドです。
command.speak_command.textstring発話する文章です。
command.move_to_pose_commandMoveToPoseCommand座標指定で移動するコマンドです。
command.move_to_pose_command.xnumberX 座標(メートル)です。
command.move_to_pose_command.ynumberY 座標(メートル)です。
command.move_to_pose_command.yawnumber向き(ラジアン)です。
command.lock_commandLockCommandその場で待機するコマンドです。
command.lock_command.duration_secnumber秒数です。
command.move_forward_commandMoveForwardCommand前後移動コマンドです。
command.move_forward_command.distance_meternumber進む距離(メートル)です。正の値は前進、負の値は後退です。
command.move_forward_command.speednumber速度(メートル毎秒)です。
command.move_forward_command.mute_sensorsbooleanセンサーによる停止を無効にするかどうかを指定します。
command.rotate_in_place_commandRotateInPlaceCommandその場回転コマンドです。
command.rotate_in_place_command.angle_radiannumber回転角(ラジアン)です。
command.dock_any_shelf_with_registration_commandDockAnyShelfWithRegistrationCommand家具を登録しながら載せるコマンドです。Kachaka Pro 専用です。
command.dock_any_shelf_with_registration_command.target_location_idstring目的地 ID です。
command.dock_any_shelf_with_registration_command.dock_forwardboolean前向きに載せるかどうかを指定します。
command.localize_commandLocalizeCommand自己位置推定コマンドです。
command.move_by_velocity_with_muted_sensors_commandMoveByVelocityWithMutedSensorsCommandセンサーを無効にして速度指定で移動するコマンドです。
command.move_by_velocity_with_muted_sensors_command.signed_velocitynumber移動速度(メートル毎秒)です。正の値は前進、負の値は後退です。
command.move_by_velocity_with_muted_sensors_command.move_duration_secnumberその速度で移動する秒数です。
command.depart_from_charger_commandDepartFromChargerCommand充電ドックから離れるコマンドです。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/GetLastCommandResult

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetLastCommandResult

GetLocations

kachaka_api.KachakaApi/GetLocations unary

登録されている目的地の一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
locationsarray<Location>目的地の一覧です。
locations[].idstring識別子です。
locations[].namestring表示名です。
locations[].posePoseマップ上の位置と向きです。
locations[].pose.xnumberX 座標(メートル)です。
locations[].pose.ynumberY 座標(メートル)です。
locations[].pose.thetanumber向き(ラジアン)です。
locations[].typeLocationType種類です。通常の目的地、充電ドック、家具の片付け先、自己位置補正マーカーがあります。
locations[].type.LOCATION_TYPE_UNSPECIFIEDenum通常の目的地です。
locations[].type.LOCATION_TYPE_CHARGERenum充電ドックです。
locations[].type.LOCATION_TYPE_SHELF_HOMEenum家具の片付け先です。
locations[].type.LOCATION_TYPE_SLAM_MARKERenum自己位置補正マーカーです。
locations[].undock_shelf_aligning_to_wallboolean家具を置くとき壁に揃えるかどうかを示します。
locations[].undock_shelf_avoiding_obstaclesboolean家具を置くとき障害物を避けるかどうかを示します。
locations[].ignore_voice_recognitionboolean音声認識の対象から外すかどうかを示します。
default_location_idstringデフォルト目的地の ID です。音声で目的地を指定しなかったときの運び先です。
rpc kachaka_api.KachakaApi/GetLocations

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetLocations

GetLocationsDigest

kachaka_api.KachakaApi/GetLocationsDigest unary

登録されている目的地の要約(ID、名前、種類)を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
locationsarray<LocationDigest>目的地の一覧です。
locations[].idstring識別子です。
locations[].namestring表示名です。
locations[].typeLocationType種類です。通常の目的地、充電ドック、家具の片付け先、自己位置補正マーカーがあります。
locations[].type.LOCATION_TYPE_UNSPECIFIEDenum通常の目的地です。
locations[].type.LOCATION_TYPE_CHARGERenum充電ドックです。
locations[].type.LOCATION_TYPE_SHELF_HOMEenum家具の片付け先です。
locations[].type.LOCATION_TYPE_SLAM_MARKERenum自己位置補正マーカーです。
rpc kachaka_api.KachakaApi/GetLocationsDigest

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetLocationsDigest

GetManualControlEnabled

kachaka_api.KachakaApi/GetManualControlEnabled unary

手動操作が有効かを取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
enabledboolean有効かどうかを示します。
rpc kachaka_api.KachakaApi/GetManualControlEnabled

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetManualControlEnabled

GetMapList

kachaka_api.KachakaApi/GetMapList unary

登録されているマップの一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
map_list_entriesarray<MapListEntry>マップの一覧です。
map_list_entries[].idstring識別子です。
map_list_entries[].namestring表示名です。
rpc kachaka_api.KachakaApi/GetMapList

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetMapList

GetMovingShelfId

kachaka_api.KachakaApi/GetMovingShelfId unary

現在載せている家具の ID を取得します。載せていない場合は空文字です。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
shelf_idstring載せている家具の ID です。載せていない場合は空文字です。
rpc kachaka_api.KachakaApi/GetMovingShelfId

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetMovingShelfId

GetObjectDetection

kachaka_api.KachakaApi/GetObjectDetection unary

カメラが検出した物体(人、家具、充電ドック、ドア)の一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
headerRosHeaderROS ヘッダです。
header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
header.frame_idstring座標系の名前です。
objectsarray<ObjectDetection>検出した物体の一覧です。
objects[].labelinteger物体の種類です。ObjectLabel の数値(0: 未指定、1: 人、2: 家具、3: 充電ドック、4: ドア)です。
objects[].roiRegionOfInterest画像上の領域です。
objects[].roi.x_offsetintegerROI の X オフセットです。
objects[].roi.y_offsetintegerROI の Y オフセットです。
objects[].roi.heightinteger高さです。
objects[].roi.widthinteger幅です。
objects[].roi.do_rectifyboolean歪み補正するかどうかを指定します。
objects[].scorenumber検出の確信度です。
objects[].distance_mediannumber物体までの距離の中央値(メートル)です。
rpc kachaka_api.KachakaApi/GetObjectDetection

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetObjectDetection

GetObjectDetectionFeatures

kachaka_api.KachakaApi/GetObjectDetectionFeatures unary

物体検出に使う特徴量を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
headerRosHeaderROS ヘッダです。
header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
header.frame_idstring座標系の名前です。
featuresarray<ObjectDetectionFeatures>特徴量の一覧です。
features[].namestring物体名です。
features[].shapearray<integer>特徴量テンソルの形状です。
features[].dataarray<number>バイナリデータです(JSON では base64 です)。
rpc kachaka_api.KachakaApi/GetObjectDetectionFeatures

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetObjectDetectionFeatures

GetPngMap

kachaka_api.KachakaApi/GetPngMap unary

現在のマップ画像(PNG)と解像度・原点を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
mapMapマップ画像とメタデータです。
map.datastringバイナリデータです(JSON では base64 です)。
map.namestring表示名です。
map.resolutionnumber1 ピクセルあたりのメートルです。
map.widthinteger幅です。
map.heightinteger高さです。
map.originPoseマップ原点のポーズです。
map.origin.xnumberX 座標(メートル)です。
map.origin.ynumberY 座標(メートル)です。
map.origin.thetanumber向き(ラジアン)です。
rpc kachaka_api.KachakaApi/GetPngMap

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetPngMap

GetRobotErrorCodeJson

kachaka_api.KachakaApi/GetRobotErrorCodeJson unary

エラーコードの定義(JSON)を取得します。

Request
FieldTypeNotes
Response
FieldTypeNotes
jsonstringエラーコード定義の JSON 文字列です。
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/GetRobotErrorCodeJson

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/GetRobotErrorCodeJson

GetRobotPose

kachaka_api.KachakaApi/GetRobotPose unary

マップ上の現在位置と向きを取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
posePoseマップ上の位置と向きです。
pose.xnumberX 座標(メートル)です。
pose.ynumberY 座標(メートル)です。
pose.thetanumber向き(ラジアン)です。
rpc kachaka_api.KachakaApi/GetRobotPose

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetRobotPose

GetRobotSerialNumber

kachaka_api.KachakaApi/GetRobotSerialNumber unary

ロボットのシリアル番号を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
serial_numberstringロボットのシリアル番号です。
rpc kachaka_api.KachakaApi/GetRobotSerialNumber

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetRobotSerialNumber

GetRobotVersion

kachaka_api.KachakaApi/GetRobotVersion unary

ロボットのソフトウェアバージョンを取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
versionstringソフトウェアバージョンです。
rpc kachaka_api.KachakaApi/GetRobotVersion

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetRobotVersion

GetRosImu

kachaka_api.KachakaApi/GetRosImu unary

IMU(加速度・角速度)の値を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
imuRosImuIMU の計測値です。
imu.headerRosHeaderROS ヘッダです。
imu.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
imu.header.frame_idstring座標系の名前です。
imu.orientationQuaternion姿勢(クォータニオン)です。
imu.orientation.xnumberクォータニオンの x です。
imu.orientation.ynumberクォータニオンの y です。
imu.orientation.znumberクォータニオンの z です。
imu.orientation.wnumberクォータニオンの w です。
imu.orientation_covariancearray<number>姿勢の共分散です。
imu.angular_velocityVector3角速度です。
imu.angular_velocity.xnumber角速度 X(ラジアン毎秒)です。
imu.angular_velocity.ynumber角速度 Y(ラジアン毎秒)です。
imu.angular_velocity.znumber角速度 Z(ラジアン毎秒)です。
imu.angular_velocity_covariancearray<number>角速度の共分散です。
imu.linear_accelerationVector3並進加速度です。
imu.linear_acceleration.xnumber並進加速度 X(メートル毎秒毎秒)です。
imu.linear_acceleration.ynumber並進加速度 Y(メートル毎秒毎秒)です。
imu.linear_acceleration.znumber並進加速度 Z(メートル毎秒毎秒)です。
imu.linear_acceleration_covariancearray<number>並進加速度の共分散です。
rpc kachaka_api.KachakaApi/GetRosImu

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetRosImu

GetRosLaserScan

kachaka_api.KachakaApi/GetRosLaserScan unary

レーザーセンサーのスキャンを取得します。アプリの「レーザーセンサーの検出情報」に相当します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
scanRosLaserScanレーザースキャンです。
scan.headerRosHeaderROS ヘッダです。
scan.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
scan.header.frame_idstring座標系の名前です。
scan.angle_minnumber最小角度(ラジアン)です。
scan.angle_maxnumber最大角度(ラジアン)です。
scan.angle_incrementnumber角度の刻み(ラジアン)です。
scan.time_incrementnumber1 点あたりの時間(秒)です。
scan.scan_timenumber1 スキャンの時間(秒)です。
scan.range_minnumber距離の下限(メートル)です。
scan.range_maxnumber距離の上限(メートル)です。
scan.rangesarray<number>各点の距離(メートル)です。
scan.intensitiesarray<number>各点の反射強度です。
rpc kachaka_api.KachakaApi/GetRosLaserScan

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetRosLaserScan

GetRosOdometry

kachaka_api.KachakaApi/GetRosOdometry unary

オドメトリを取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
odometryRosOdometryオドメトリです。
odometry.headerRosHeaderROS ヘッダです。
odometry.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
odometry.header.frame_idstring座標系の名前です。
odometry.child_frame_idstring子座標系の名前です。
odometry.posePose3dWithCovarianceオドメトリ座標系での位置と向きです。
odometry.pose.posePose3dマップ上の位置と向きです。
odometry.pose.pose.positionVector3位置です。
odometry.pose.pose.position.xnumber位置 X(メートル)です。
odometry.pose.pose.position.ynumber位置 Y(メートル)です。
odometry.pose.pose.position.znumber位置 Z(メートル)です。
odometry.pose.pose.orientationQuaternion姿勢(クォータニオン)です。
odometry.pose.pose.orientation.xnumberクォータニオンの x です。
odometry.pose.pose.orientation.ynumberクォータニオンの y です。
odometry.pose.pose.orientation.znumberクォータニオンの z です。
odometry.pose.pose.orientation.wnumberクォータニオンの w です。
odometry.pose.covariancearray<number>共分散です。
odometry.twistTwistWithCovariance速度です。
odometry.twist.twistTwist速度です。
odometry.twist.twist.linearVector3並進速度(メートル毎秒)です。
odometry.twist.twist.linear.xnumber並進速度 X(メートル毎秒)です。
odometry.twist.twist.linear.ynumber並進速度 Y(メートル毎秒)です。
odometry.twist.twist.linear.znumber並進速度 Z(メートル毎秒)です。
odometry.twist.twist.angularVector3角速度(ラジアン毎秒)です。
odometry.twist.twist.angular.xnumber角速度 X(ラジアン毎秒)です。
odometry.twist.twist.angular.ynumber角速度 Y(ラジアン毎秒)です。
odometry.twist.twist.angular.znumber角速度 Z(ラジアン毎秒)です。
odometry.twist.covariancearray<number>共分散です。
rpc kachaka_api.KachakaApi/GetRosOdometry

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetRosOdometry

GetRosWheelOdometry

kachaka_api.KachakaApi/GetRosWheelOdometry unary

車輪オドメトリを取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
odometryRosOdometryオドメトリです。
odometry.headerRosHeaderROS ヘッダです。
odometry.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
odometry.header.frame_idstring座標系の名前です。
odometry.child_frame_idstring子座標系の名前です。
odometry.posePose3dWithCovarianceオドメトリ座標系での位置と向きです。
odometry.pose.posePose3dマップ上の位置と向きです。
odometry.pose.pose.positionVector3位置です。
odometry.pose.pose.position.xnumber位置 X(メートル)です。
odometry.pose.pose.position.ynumber位置 Y(メートル)です。
odometry.pose.pose.position.znumber位置 Z(メートル)です。
odometry.pose.pose.orientationQuaternion姿勢(クォータニオン)です。
odometry.pose.pose.orientation.xnumberクォータニオンの x です。
odometry.pose.pose.orientation.ynumberクォータニオンの y です。
odometry.pose.pose.orientation.znumberクォータニオンの z です。
odometry.pose.pose.orientation.wnumberクォータニオンの w です。
odometry.pose.covariancearray<number>共分散です。
odometry.twistTwistWithCovariance速度です。
odometry.twist.twistTwist速度です。
odometry.twist.twist.linearVector3並進速度(メートル毎秒)です。
odometry.twist.twist.linear.xnumber並進速度 X(メートル毎秒)です。
odometry.twist.twist.linear.ynumber並進速度 Y(メートル毎秒)です。
odometry.twist.twist.linear.znumber並進速度 Z(メートル毎秒)です。
odometry.twist.twist.angularVector3角速度(ラジアン毎秒)です。
odometry.twist.twist.angular.xnumber角速度 X(ラジアン毎秒)です。
odometry.twist.twist.angular.ynumber角速度 Y(ラジアン毎秒)です。
odometry.twist.twist.angular.znumber角速度 Z(ラジアン毎秒)です。
odometry.twist.covariancearray<number>共分散です。
rpc kachaka_api.KachakaApi/GetRosWheelOdometry

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetRosWheelOdometry

GetShelves

kachaka_api.KachakaApi/GetShelves unary

登録されている家具の一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
shelvesarray<Shelf>家具の一覧です。
shelves[].idstring識別子です。
shelves[].namestring表示名です。
shelves[].posePoseマップ上の位置と向きです。移動中は追従せず、移動完了時、置く直前、充電ドックへ戻ったあと、外れたときに更新されます。
shelves[].pose.xnumberX 座標(メートル)です。
shelves[].pose.ynumberY 座標(メートル)です。
shelves[].pose.thetanumber向き(ラジアン)です。
shelves[].sizeShelfSize外形サイズ(メートル)です。
shelves[].size.widthnumber幅です。
shelves[].size.depthnumber奥行き(メートル)です。
shelves[].size.heightnumber高さです。
shelves[].appearanceShelfAppearance家具の見た目の種類です。
shelves[].appearance.SHELF_APPEARANCE_UNSPECIFIEDenum見た目が未指定です。
shelves[].appearance.SHELF_APPEARANCE_DEFAULT_SHELFenum標準の家具です。
shelves[].appearance.SHELF_APPEARANCE_KACHAKA_SHELF_3DRAWERSenum3段のカチャカシェルフです。
shelves[].appearance.SHELF_APPEARANCE_KACHAKA_SHELF_2DRAWERSenum2段のカチャカシェルフです。
shelves[].appearance.SHELF_APPEARANCE_KACHAKA_BASEenumカチャカベースです。
shelves[].recognizable_namesarray<RecognizableName>音声認識で使える名前です。
shelves[].recognizable_names[].namestring表示名です。
shelves[].recognizable_names[].deletableboolean削除できる名前かどうかを示します。
shelves[].home_location_idstring片付け先の目的地 ID です。
shelves[].speed_modeShelfSpeedMode運搬時の速度モードです。
shelves[].speed_mode.SHELF_SPEED_MODE_UNSPECIFIEDenum
shelves[].speed_mode.SHELF_SPEED_MODE_LOWenum
shelves[].speed_mode.SHELF_SPEED_MODE_NORMALenum
shelves[].ignore_voice_recognitionboolean音声認識の対象から外すかどうかを示します。
rpc kachaka_api.KachakaApi/GetShelves

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetShelves

GetShelvesDigest

kachaka_api.KachakaApi/GetShelvesDigest unary

登録されている家具の要約(ID と名前)を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
shelvesarray<ShelfDigest>家具の一覧です。
shelves[].idstring識別子です。
shelves[].namestring表示名です。
rpc kachaka_api.KachakaApi/GetShelvesDigest

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetShelvesDigest

GetShortcuts

kachaka_api.KachakaApi/GetShortcuts unary

登録されているショートカットの一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
shortcutsarray<Shortcut>ショートカットの一覧です。
shortcuts[].idstring識別子です。
shortcuts[].namestring表示名です。
rpc kachaka_api.KachakaApi/GetShortcuts

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetShortcuts

GetSoundList

kachaka_api.KachakaApi/GetSoundList unary

登録されている効果音の一覧を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
soundsarray<Sound>効果音の一覧です。
sounds[].idstring識別子です。
sounds[].namestring表示名です。
rpc kachaka_api.KachakaApi/GetSoundList

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetSoundList

GetSpeakerVolume

kachaka_api.KachakaApi/GetSpeakerVolume unary

スピーカー音量を取得します。アプリの「カチャカの音量」に相当します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
volumeintegerスピーカー音量(0〜10)です。
rpc kachaka_api.KachakaApi/GetSpeakerVolume

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetSpeakerVolume

GetStaticTransform

kachaka_api.KachakaApi/GetStaticTransform unary

静的な座標変換(TF)を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
transformsarray<RosTransformStamped>座標変換の一覧です。
transforms[].headerRosHeaderROS ヘッダです。
transforms[].header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
transforms[].header.frame_idstring座標系の名前です。
transforms[].child_frame_idstring子座標系の名前です。
transforms[].translationVector3平行移動です。
transforms[].translation.xnumber平行移動 X(メートル)です。
transforms[].translation.ynumber平行移動 Y(メートル)です。
transforms[].translation.znumber平行移動 Z(メートル)です。
transforms[].rotationQuaternion回転(クォータニオン)です。
transforms[].rotation.xnumberクォータニオンの x です。
transforms[].rotation.ynumberクォータニオンの y です。
transforms[].rotation.znumberクォータニオンの z です。
transforms[].rotation.wnumberクォータニオンの w です。
rpc kachaka_api.KachakaApi/GetStaticTransform

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetStaticTransform

GetTofCameraRosCameraInfo

kachaka_api.KachakaApi/GetTofCameraRosCameraInfo unary

ToF カメラのカメラ情報を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
camera_infoRosCameraInfoカメラの内部パラメータです。
camera_info.headerRosHeaderROS ヘッダです。
camera_info.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
camera_info.header.frame_idstring座標系の名前です。
camera_info.heightinteger高さです。
camera_info.widthinteger幅です。
camera_info.distortion_modelstring歪みモデル名です。
camera_info.Darray<number>歪み係数です。
camera_info.Karray<number>カメラ行列(3x3)です。
camera_info.Rarray<number>回転行列(3x3)です。
camera_info.Parray<number>投影行列(3x4)です。
camera_info.binning_xintegerx方向のビニングです。
camera_info.binning_yintegery方向のビニングです。
camera_info.roiRegionOfInterest画像上の領域です。
camera_info.roi.x_offsetintegerROI の X オフセットです。
camera_info.roi.y_offsetintegerROI の Y オフセットです。
camera_info.roi.heightinteger高さです。
camera_info.roi.widthinteger幅です。
camera_info.roi.do_rectifyboolean歪み補正するかどうかを指定します。
rpc kachaka_api.KachakaApi/GetTofCameraRosCameraInfo

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetTofCameraRosCameraInfo

GetTofCameraRosCompressedImage

kachaka_api.KachakaApi/GetTofCameraRosCompressedImage unary

ToF カメラの圧縮画像を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
imageRosCompressedImage画像です。
image.headerRosHeaderROS ヘッダです。
image.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
image.header.frame_idstring座標系の名前です。
image.formatstring圧縮画像のフォーマット名です。
image.datastringバイナリデータです(JSON では base64 です)。
is_availablebooleanセンサが利用可能かどうかを示します。
rpc kachaka_api.KachakaApi/GetTofCameraRosCompressedImage

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetTofCameraRosCompressedImage

GetTofCameraRosImage

kachaka_api.KachakaApi/GetTofCameraRosImage unary

ToF カメラの画像を取得します。

Request
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
Response
FieldTypeNotes
metadataMetadataカーソルなどのメタデータです。
metadata.cursorstring|integerロングポーリング用のカーソルです。0 を指定すると最新の値をすぐに返します。前回の応答の metadata.cursor を指定すると、値が更新されるまで応答を待ちます。
imageRosImage画像です。
image.headerRosHeaderROS ヘッダです。
image.header.stamp_nsecstring|integerタイムスタンプ(ナノ秒)です。
image.header.frame_idstring座標系の名前です。
image.heightinteger高さです。
image.widthinteger幅です。
image.encodingstring画素のエンコーディングです。
image.is_bigendianbooleanビッグエンディアンかどうかを示します。
image.stepinteger1 行あたりのバイト数です。
image.datastringバイナリデータです(JSON では base64 です)。
is_availablebooleanセンサが利用可能かどうかを示します。
rpc kachaka_api.KachakaApi/GetTofCameraRosImage

Request samples

{
  "metadata": {
    "cursor": 0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"metadata": {"cursor": 0}}' <hostname>:26400 kachaka_api.KachakaApi/GetTofCameraRosImage

ImportImageAsMap

kachaka_api.KachakaApi/ImportImageAsMap client-stream

画像をマップとして読み込みます(クライアントストリーム)。

Request
FieldTypeNotes
datastringバイナリデータです(JSON では base64 です)。
charger_posePose画像マップ上の充電ドックの位置です。
charger_pose.xnumberX 座標(ピクセル)です。
charger_pose.ynumberY 座標(ピクセル)です。
charger_pose.thetanumber向き(ラジアン)です。
resolutionnumber1 ピクセルあたりのメートルです。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
map_idstringマップ ID です。
rpc kachaka_api.KachakaApi/ImportImageAsMap

Request samples

{
  "data": "",
  "charger_pose": {
    "x": 0.0,
    "y": 0.0,
    "theta": 0.0
  },
  "resolution": 0.0
}

grpcurl

printf '%s\n' "{\"data\": \"\", \"charger_pose\": {\"x\": 0.0, \"y\": 0.0, \"theta\": 0.0}, \"resolution\": 0.0}" | grpcurl -plaintext -proto kachaka-api.proto -d @ <hostname>:26400 kachaka_api.KachakaApi/ImportImageAsMap

ImportMap

kachaka_api.KachakaApi/ImportMap client-stream

マップのデータを読み込みます(クライアントストリーム)。

Request
FieldTypeNotes
datastringバイナリデータです(JSON では base64 です)。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
map_idstringマップ ID です。
rpc kachaka_api.KachakaApi/ImportMap

Request samples

{
  "data": ""
}

grpcurl

printf '%s\n' "{\"data\": \"\"}" | grpcurl -plaintext -proto kachaka-api.proto -d @ <hostname>:26400 kachaka_api.KachakaApi/ImportMap

IsReady

kachaka_api.KachakaApi/IsReady unary

ロボットがコマンドを受け付けられる状態かを取得します。この RPC は待たずに直ちに返します。

Request
FieldTypeNotes
Response
FieldTypeNotes
readybooleanコマンドを受け付けられる状態かどうかを示します。
rpc kachaka_api.KachakaApi/IsReady

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/IsReady

LoadMapPreview

kachaka_api.KachakaApi/LoadMapPreview unary

指定したマップのプレビュー画像を取得します。

Request
FieldTypeNotes
map_idstringマップ ID です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
mapMapマップ画像とメタデータです。
map.datastringバイナリデータです(JSON では base64 です)。
map.namestring表示名です。
map.resolutionnumber1 ピクセルあたりのメートルです。
map.widthinteger幅です。
map.heightinteger高さです。
map.originPoseマップ原点のポーズです。
map.origin.xnumberX 座標(メートル)です。
map.origin.ynumberY 座標(メートル)です。
map.origin.thetanumber向き(ラジアン)です。
rpc kachaka_api.KachakaApi/LoadMapPreview

Request samples

{
  "map_id": ""
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"map_id": ""}' <hostname>:26400 kachaka_api.KachakaApi/LoadMapPreview

PlaySound

kachaka_api.KachakaApi/PlaySound unary

効果音を再生します。

Request
FieldTypeNotes
sound_idstring効果音 ID です。
loopboolean繰り返し再生するかどうかを指定します。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/PlaySound

Request samples

{
  "sound_id": "",
  "loop": false
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"sound_id": "", "loop": false}' <hostname>:26400 kachaka_api.KachakaApi/PlaySound

Proceed

kachaka_api.KachakaApi/Proceed unary

「その場で待機」を途中で終了し、次の処理へ進めます。

Request
FieldTypeNotes
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/Proceed

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/Proceed

ResetShelfPose

kachaka_api.KachakaApi/ResetShelfPose unary

家具の位置を片付け先にリセットします。

Request
FieldTypeNotes
shelf_idstring家具 ID です。空文字の場合はすべての家具が対象です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/ResetShelfPose

Request samples

{
  "shelf_id": ""
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"shelf_id": ""}' <hostname>:26400 kachaka_api.KachakaApi/ResetShelfPose

RestartRobot

kachaka_api.KachakaApi/RestartRobot unary

ロボットを再起動します。アプリの「カチャカを再起動」に相当します。

Request
FieldTypeNotes
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/RestartRobot

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/RestartRobot

SetAutoHomingEnabled

kachaka_api.KachakaApi/SetAutoHomingEnabled unary

何もしていないとき、充電中でなければ充電ドックへ自動で戻る機能の有効/無効を切り替えます。場所は問わず、充電が止まったあとに戻る動作も、この設定がオフだと止まります。

Request
FieldTypeNotes
enableboolean有効にするかどうかを指定します。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetAutoHomingEnabled

Request samples

{
  "enable": false
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"enable": false}' <hostname>:26400 kachaka_api.KachakaApi/SetAutoHomingEnabled

SetBackTorchIntensity

kachaka_api.KachakaApi/SetBackTorchIntensity unary

後方ライトの明るさを設定します。

Request
FieldTypeNotes
intensityinteger明るさ(0〜255)です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetBackTorchIntensity

Request samples

{
  "intensity": 0
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"intensity": 0}' <hostname>:26400 kachaka_api.KachakaApi/SetBackTorchIntensity

SetEmergencyStop

kachaka_api.KachakaApi/SetEmergencyStop unary

停止ボタンを押した状態にします。

Request
FieldTypeNotes
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetEmergencyStop

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/SetEmergencyStop

SetFrontTorchIntensity

kachaka_api.KachakaApi/SetFrontTorchIntensity unary

前方ライトの明るさを設定します。

Request
FieldTypeNotes
intensityinteger明るさ(0〜255)です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetFrontTorchIntensity

Request samples

{
  "intensity": 0
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"intensity": 0}' <hostname>:26400 kachaka_api.KachakaApi/SetFrontTorchIntensity

SetManualControlEnabled

kachaka_api.KachakaApi/SetManualControlEnabled unary

手動操作の有効/無効を切り替えます。アプリの「カチャカの手動操作」に相当します。

Request
FieldTypeNotes
enableboolean有効にするかどうかを指定します。
use_shelf_registrationboolean手動操作を有効にするとき、家具の位置登録を使うかどうかを指定します。enable が true のときだけ有効です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetManualControlEnabled

Request samples

{
  "enable": false,
  "use_shelf_registration": false
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"enable": false, "use_shelf_registration": false}' <hostname>:26400 kachaka_api.KachakaApi/SetManualControlEnabled

SetRobotPose

kachaka_api.KachakaApi/SetRobotPose unary

マップ上の現在位置を指定した座標に設定します。

Request
FieldTypeNotes
posePoseマップ上の位置と向きです。
pose.xnumberX 座標(メートル)です。
pose.ynumberY 座標(メートル)です。
pose.thetanumber向き(ラジアン)です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetRobotPose

Request samples

{
  "pose": {
    "x": 0.0,
    "y": 0.0,
    "theta": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"pose": {"x": 0.0, "y": 0.0, "theta": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/SetRobotPose

SetRobotVelocity

kachaka_api.KachakaApi/SetRobotVelocity unary

並進・回転の速度指令を送ります。手動操作中にご利用ください。

Request
FieldTypeNotes
linearnumber並進速度(-1〜1)です。
angularnumber回転速度(-1〜1)です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetRobotVelocity

Request samples

{
  "linear": 0.0,
  "angular": 0.0
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"linear": 0.0, "angular": 0.0}' <hostname>:26400 kachaka_api.KachakaApi/SetRobotVelocity

SetSpeakerVolume

kachaka_api.KachakaApi/SetSpeakerVolume unary

スピーカー音量を設定します。

Request
FieldTypeNotes
volumeintegerスピーカー音量(0〜10)です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SetSpeakerVolume

Request samples

{
  "volume": 0
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"volume": 0}' <hostname>:26400 kachaka_api.KachakaApi/SetSpeakerVolume

StartCommand (depart_from_charger_command)

kachaka_api.KachakaApi/StartCommand unary

充電ドックから離れます。

command.depart_from_charger_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_depart_from_charger_command実行するコマンドです。oneof のうち 1 つを指定します。
command.depart_from_charger_commandDepartFromChargerCommand充電ドックから離れるコマンドです。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "depart_from_charger_command": {}
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"depart_from_charger_command": {}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (dock_any_shelf_with_registration_command)

kachaka_api.KachakaApi/StartCommand unary

指定した目的地にある家具を載せます。家具が未登録の場合は登録します。Kachaka Pro でのみ利用できます。

command.dock_any_shelf_with_registration_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_dock_any_shelf_with_registration_command実行するコマンドです。oneof のうち 1 つを指定します。
command.dock_any_shelf_with_registration_commandDockAnyShelfWithRegistrationCommand家具を登録しながら載せるコマンドです。Kachaka Pro 専用です。
command.dock_any_shelf_with_registration_command.target_location_idstring目的地 ID です。
command.dock_any_shelf_with_registration_command.dock_forwardboolean前向きに載せるかどうかを指定します。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "dock_any_shelf_with_registration_command": {
      "target_location_id": "",
      "dock_forward": false
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"dock_any_shelf_with_registration_command": {"target_location_id": "", "dock_forward": false}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (dock_shelf_command)

kachaka_api.KachakaApi/StartCommand unary

目の前の家具を載せます。アプリの「家具を載せる」に相当します。

command.dock_shelf_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_dock_shelf_command実行するコマンドです。oneof のうち 1 つを指定します。
command.dock_shelf_commandDockShelfCommand家具を載せるコマンドです。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "dock_shelf_command": {}
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"dock_shelf_command": {}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (localize_command)

kachaka_api.KachakaApi/StartCommand unary

自己位置を推定し直します。

command.localize_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_localize_command実行するコマンドです。oneof のうち 1 つを指定します。
command.localize_commandLocalizeCommand自己位置推定コマンドです。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "localize_command": {}
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"localize_command": {}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (lock_command)

kachaka_api.KachakaApi/StartCommand unary

その場で指定した秒数だけ待機します。アプリの「その場で待機」に相当します。待機中は Proceed で途中終了できます。

command.lock_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_lock_command実行するコマンドです。oneof のうち 1 つを指定します。
command.lock_commandLockCommandその場で待機するコマンドです。
command.lock_command.duration_secnumber秒数です。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "lock_command": {
      "duration_sec": 0.0
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"lock_command": {"duration_sec": 0.0}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (move_by_velocity_with_muted_sensors_command)

kachaka_api.KachakaApi/StartCommand unary

センサーを無効にしたまま、指定した速度で一定時間移動します。アプリの「センサーをOFFにして直進」「センサーをOFFにして後退」に相当します。

command.move_by_velocity_with_muted_sensors_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_move_by_velocity_with_muted_sensors_command実行するコマンドです。oneof のうち 1 つを指定します。
command.move_by_velocity_with_muted_sensors_commandMoveByVelocityWithMutedSensorsCommandセンサーを無効にして速度指定で移動するコマンドです。
command.move_by_velocity_with_muted_sensors_command.signed_velocitynumber移動速度(メートル毎秒)です。正の値は前進、負の値は後退です。
command.move_by_velocity_with_muted_sensors_command.move_duration_secnumberその速度で移動する秒数です。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "move_by_velocity_with_muted_sensors_command": {
      "signed_velocity": 0.0,
      "move_duration_sec": 0.0
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"move_by_velocity_with_muted_sensors_command": {"signed_velocity": 0.0, "move_duration_sec": 0.0}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (move_forward_command)

kachaka_api.KachakaApi/StartCommand unary

指定した距離だけ前後に移動します。正の距離は前進です。アプリの「前方に移動」に相当します。

command.move_forward_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_move_forward_command実行するコマンドです。oneof のうち 1 つを指定します。
command.move_forward_commandMoveForwardCommand前後移動コマンドです。
command.move_forward_command.distance_meternumber進む距離(メートル)です。正の値は前進、負の値は後退です。
command.move_forward_command.speednumber速度(メートル毎秒)です。
command.move_forward_command.mute_sensorsbooleanセンサーによる停止を無効にするかどうかを指定します。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "move_forward_command": {
      "distance_meter": 0.0,
      "speed": 0.0,
      "mute_sensors": false
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"move_forward_command": {"distance_meter": 0.0, "speed": 0.0, "mute_sensors": false}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (move_shelf_command)

kachaka_api.KachakaApi/StartCommand unary

指定した家具を目的地へ運びます。アプリでは「家具を運ぶ」「家具の移動」として実行する操作です。

command.move_shelf_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_move_shelf_command実行するコマンドです。oneof のうち 1 つを指定します。
command.move_shelf_commandMoveShelfCommand家具を目的地へ運ぶコマンドです。
command.move_shelf_command.target_shelf_idstring対象の家具 ID です。
command.move_shelf_command.destination_location_idstring運び先の目的地 ID です。
command.move_shelf_command.undock_on_destinationboolean到着後に家具を置くかどうかを指定します。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "move_shelf_command": {
      "target_shelf_id": "",
      "destination_location_id": "",
      "undock_on_destination": false
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"move_shelf_command": {"target_shelf_id": "", "destination_location_id": "", "undock_on_destination": false}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (move_to_location_command)

kachaka_api.KachakaApi/StartCommand unary

指定した目的地へ移動します。アプリの「目的地への移動」に相当します。

command.move_to_location_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_move_to_location_command実行するコマンドです。oneof のうち 1 つを指定します。
command.move_to_location_commandMoveToLocationCommand目的地へ移動するコマンドです。
command.move_to_location_command.target_location_idstring目的地 ID です。
command.move_to_location_command.source_location_idstring移動の開始地点にする目的地 ID です。空文字の場合は現在位置から移動します。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "move_to_location_command": {
      "target_location_id": "",
      "source_location_id": ""
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"move_to_location_command": {"target_location_id": "", "source_location_id": ""}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (move_to_pose_command)

kachaka_api.KachakaApi/StartCommand unary

指定した座標・向きへ移動します。

command.move_to_pose_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_move_to_pose_command実行するコマンドです。oneof のうち 1 つを指定します。
command.move_to_pose_commandMoveToPoseCommand座標指定で移動するコマンドです。
command.move_to_pose_command.xnumberX 座標(メートル)です。
command.move_to_pose_command.ynumberY 座標(メートル)です。
command.move_to_pose_command.yawnumber向き(ラジアン)です。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "move_to_pose_command": {
      "x": 0.0,
      "y": 0.0,
      "yaw": 0.0
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"move_to_pose_command": {"x": 0.0, "y": 0.0, "yaw": 0.0}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (return_home_command)

kachaka_api.KachakaApi/StartCommand unary

充電ドックへ戻ります。アプリの「充電ドックに戻る」に相当します。

command.return_home_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_return_home_command実行するコマンドです。oneof のうち 1 つを指定します。
command.return_home_commandReturnHomeCommand充電ドックへ戻るコマンドです。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "return_home_command": {}
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"return_home_command": {}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (return_shelf_command)

kachaka_api.KachakaApi/StartCommand unary

指定した家具を片付け先へ戻します。アプリの「家具を片付ける」に相当します。

command.return_shelf_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_return_shelf_command実行するコマンドです。oneof のうち 1 つを指定します。
command.return_shelf_commandReturnShelfCommand家具を片付け先へ戻すコマンドです。
command.return_shelf_command.target_shelf_idstring対象の家具 ID です。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "return_shelf_command": {
      "target_shelf_id": ""
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"return_shelf_command": {"target_shelf_id": ""}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (rotate_in_place_command)

kachaka_api.KachakaApi/StartCommand unary

その場で指定した角度だけ回転します。

command.rotate_in_place_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_rotate_in_place_command実行するコマンドです。oneof のうち 1 つを指定します。
command.rotate_in_place_commandRotateInPlaceCommandその場回転コマンドです。
command.rotate_in_place_command.angle_radiannumber回転角(ラジアン)です。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "rotate_in_place_command": {
      "angle_radian": 0.0
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"rotate_in_place_command": {"angle_radian": 0.0}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (speak_command)

kachaka_api.KachakaApi/StartCommand unary

指定した文章を発話します。アプリでは「発話」として表示されます。

command.speak_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_speak_command実行するコマンドです。oneof のうち 1 つを指定します。
command.speak_commandSpeakCommand発話コマンドです。
command.speak_command.textstring発話する文章です。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "speak_command": {
      "text": ""
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"speak_command": {"text": ""}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartCommand (undock_shelf_command)

kachaka_api.KachakaApi/StartCommand unary

載せている家具を置きます。アプリの「家具を置く」に相当します。

command.undock_shelf_command を指定して StartCommand を呼び出します。

Request
FieldTypeNotes
commandCommand_undock_shelf_command実行するコマンドです。oneof のうち 1 つを指定します。
command.undock_shelf_commandUndockShelfCommand家具を置くコマンドです。
command.undock_shelf_command.target_shelf_idstring対象の家具 ID です。要求時は空のままで構いません。状態や結果を取得する時点で、置いた家具の ID が入ります。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
tts_on_successstring成功時に発話する文章です。空文字の場合は発話しません。
titlestringコマンドの表示名です。
deferrableboolean後ろに回さないコマンドがキューにあるとき、その後ろへ回してよいかどうかを指定します。
lock_on_endLockOnEndコマンド完了後にその場で待機する設定です。未指定の場合は待機しません。
lock_on_end.duration_secnumber完了後に待機する秒数です。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
command_idstringコマンドの識別子です。
rpc kachaka_api.KachakaApi/StartCommand

Request samples

{
  "command": {
    "undock_shelf_command": {
      "target_shelf_id": ""
    }
  },
  "cancel_all": false,
  "tts_on_success": "",
  "title": "",
  "deferrable": false,
  "lock_on_end": {
    "duration_sec": 0.0
  }
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"command": {"undock_shelf_command": {"target_shelf_id": ""}}, "cancel_all": false, "tts_on_success": "", "title": "", "deferrable": false, "lock_on_end": {"duration_sec": 0.0}}' <hostname>:26400 kachaka_api.KachakaApi/StartCommand

StartShortcutCommand

kachaka_api.KachakaApi/StartShortcutCommand unary

指定したショートカットを実行します。アプリのホームからショートカットを実行する操作に相当します。

Request
FieldTypeNotes
target_shortcut_idstring実行するショートカット ID です。
cancel_allboolean実行中のコマンドをすべて取り消してから開始するかどうかを指定します。アプリの「今すぐ」実行に相当します。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/StartShortcutCommand

Request samples

{
  "target_shortcut_id": "",
  "cancel_all": false
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"target_shortcut_id": "", "cancel_all": false}' <hostname>:26400 kachaka_api.KachakaApi/StartShortcutCommand

StopSound

kachaka_api.KachakaApi/StopSound unary

再生中の効果音を停止します。

Request
FieldTypeNotes
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/StopSound

Request samples

{}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{}' <hostname>:26400 kachaka_api.KachakaApi/StopSound

SwitchMap

kachaka_api.KachakaApi/SwitchMap unary

使用するマップを切り替えます。アプリの「マップを切り替える」に相当します。

Request
FieldTypeNotes
map_idstringマップ ID です。
initial_posePose切り替え後の初期位置です。未指定の場合は充電ドックの位置を使います。
initial_pose.xnumberX 座標(メートル)です。
initial_pose.ynumberY 座標(メートル)です。
initial_pose.thetanumber向き(ラジアン)です。
inherit_docking_state_and_docked_shelfboolean切り替え後もドッキング状態と載せている家具を引き継ぐかどうかを指定します。Kachaka Pro でのみ利用できます。標準版で true にするとエラーになります。
docking_state_inherit_methodSwitchMapInheritMethodドッキング状態の引き継ぎ方法です。Kachaka Pro で利用します。
docking_state_inherit_method.SWITCH_MAP_INHERIT_METHOD_UNSPECIFIEDenum未指定です。SHELF_ID_BASED と同じ動作になります。
docking_state_inherit_method.SWITCH_MAP_INHERIT_METHOD_SHELF_ID_BASEDenum同じ家具 ID の家具へ引き継ぎます。切り替え先に無ければ、その ID のまま追加します。
docking_state_inherit_method.SWITCH_MAP_INHERIT_METHOD_FIDUCIAL_ID_BASEDenum同じ fiducial ID(棚シリアル)の家具へ引き継ぎます。切り替え先に無ければ、新しい家具として追加します。
Response
FieldTypeNotes
resultResult実行結果です。
result.successboolean成功したかどうかを示します。
result.error_codeintegerエラーコードです。成功時は 0 です。
rpc kachaka_api.KachakaApi/SwitchMap

Request samples

{
  "map_id": "",
  "initial_pose": {
    "x": 0.0,
    "y": 0.0,
    "theta": 0.0
  },
  "inherit_docking_state_and_docked_shelf": false,
  "docking_state_inherit_method": "SWITCH_MAP_INHERIT_METHOD_UNSPECIFIED"
}

grpcurl

grpcurl -plaintext -proto kachaka-api.proto -d '{"map_id": "", "initial_pose": {"x": 0.0, "y": 0.0, "theta": 0.0}, "inherit_docking_state_and_docked_shelf": false, "docking_state_inherit_method": "SWITCH_MAP_INHERIT_METHOD_UNSPECIFIED"}' <hostname>:26400 kachaka_api.KachakaApi/SwitchMap