rosserviceでのRefBoxとの通信
自分用メモ.
send machine reportの使い方.
rosservice call /rcll/send_machine_report '1' '[[C-CS1,CS,11,180]]'
res = subprocess.run(["rosservice", "call", "/rcll/send_machine_report", str(teamColor), \ "[[" + machineName + "," + machineType + "," + str(machineZone) + "," + str(machineRotation) + "]]"], \ stdout = subprocess.PIPE)
send beaconの使い方.
rosservice call /rcll/send_beacon '[0, 0, "Header"]' '[[0, 0, "Header"], [[0, 0, 0], [0, 0, 0, 0]]]'
res = subprocess.run(["rosservice", "call", "/rcll/send_beacon", \ "[" + str(seq) + "," + str(0) + ", \"Header\"]", \ "[[" + str(seq) + "," + str(0) + ", \"Header\"], [[" + str(odometryX) + "," + str(odometryY) + "," +str(0) +"], [" + str(quat_x) + "," + str(quat_y) + "," + str(quat_z) + "," + str(quat_w) + "]]]"], \ stdout = subprocess.PIPE)
コメントを残す