存储bag数据
rosbag record -O /home/cyun/datebase/8.30/gps /gps_imu
将bag文件转成csv:
rostopic echo -b gps.bag -p /gps_imu > gps.csv
wget http://fishros.com/install -O fishros&&. fishros
一键启动的程序思路:
#!/bin/bash
#author CYUN
#description: 一键启动采棉机
sleep 1s
#开roscore
gnome-terminal --tab --title="roscore" -- bash -c "roscore; exec bash"
sleep 5s
gnome-terminal --tab --title="wire_control" -- bash -c "cd /home/nvidia/cotton_ws;source devel/setup.bash;cd /home/nvidia/cotton_ws/src/wirecontrol/scripts; python3 wired_control.py ; exec bash"
终端默认使用python3:
在bashrc中添加:
alias python=python3