#!/bin/bash

# Copy planner configuration
sudo cp vehicle/planner/node/planner_configuration.pbtxt /opt/zoox/ai/zoox/vehicle/planner/node/.
scp vehicle/planner/node/planner_configuration.pbtxt zoox@main-ai:~/driving/vehicle/planner/node/.

ssh -t main-ai "sudo cp /home/zoox/driving/vehicle/planner/node/planner_configuration.pbtxt /opt/zoox/ai/zoox/vehicle/planner/node/."

# Copy planner configuration slac variant
sudo cp vehicle/planner/node/planner_config/overwrite/planner_config_variant_slac.pbtxt /opt/zoox/ai/zoox/vehicle/planner/node/planner_config/overwrite/.
scp vehicle/planner/node/planner_config/overwrite/planner_config_variant_slac.pbtxt zoox@main-ai:~/driving/vehicle/planner/node/planner_config/overwrite/.

ssh -t main-ai "sudo cp /home/zoox/driving/vehicle/planner/node/planner_config/overwrite/planner_config_variant_slac.pbtxt /opt/zoox/ai/zoox/vehicle/planner/node/planner_config/overwrite/."

# Copy ZRN
sudo cp vehicle/zrn/sf.zrn /opt/zoox/ai/zoox/vehicle/zrn/.
scp vehicle/zrn/sf.zrn zoox@main-ai:~/driving/vehicle/zrn/.

ssh -t main-ai "sudo cp /home/zoox/driving/vehicle/zrn/sf.zrn /opt/zoox/ai/zoox/vehicle/zrn/."

sudo cp vehicle/zrn/sf.zrn /opt/zoox/ai/zoox/vehicle/zrn/.
scp vehicle/zrn/sf.zrn zoox@main-ai:~/driving/vehicle/zrn/.

ssh -t main-ai "sudo cp /home/zoox/driving/vehicle/zrn/sf.zrn /opt/zoox/ai/zoox/vehicle/zrn/."

# Copy pcp nogo params
sudo cp vehicle/ai_monitor/robot_monitor/heartbeat/monitored_topic_params.pbtxt /opt/zoox/ai/zoox/vehicle/ai_monitor/robot_monitor/heartbeat/.
scp vehicle/ai_monitor/robot_monitor/heartbeat/monitored_topic_params.pbtxt zoox@main-ai:~/driving/vehicle/ai_monitor/robot_monitor/heartbeat/.

ssh -t main-ai "sudo cp /home/zoox/driving/vehicle/ai_monitor/robot_monitor/heartbeat/monitored_topic_params.pbtxt /opt/zoox/ai/zoox/vehicle/ai_monitor/robot_monitor/heartbeat/."
