#!/bin/bash  
  
# 检查是否提供了参数  
if [ "$#" -ne 1 ]; then  
    echo "错误：请提供参数, bag文件的路径。"  
    exit 1  
fi  
  
# 读取参数  
BAG_FILE="$1"  
# PNG_FILE="$2"  
  
# 运行rosrun命令  
# rosrun trajectory demo_node map.bag "$BAG_FILE" "$PNG_FILE"
# python /home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/pji_run.py "/home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/result/demo0430/$BAG_FILE" /home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/result/demo0430 /home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/result/demo0430/track_map.png

python /home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/pji_run.py "/home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/result/demo0430/$BAG_FILE" /home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/result/demo0430 /home/server/桌面/virtualEnv_yzh/virtual_pji/PJI_robot_evaluate_sim/result/demo0430/track_map.png
