重要命令

本文介绍了SCP命令的使用,包括复制文件和目录的详细格式,并给出了实际操作示例。同时,讲解了Apollo Cyber工具如cyber_recorder和cyber_channel的功能及其与ROS相关工具的对比。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

cyber_recorder record -c /apollo/localization/pose /apollo/canbus/chassis /apollo/perception/obstacles /apollo/prediction /apollo/planning /apollo/control

cyber_channel echo /apollo/prediction

df -hl

1、scp命令的实际应用概述: 

(1) 复制文件: 

命令格式: 

scp local_file remote_username@remote_ip:remote_folder 

或者 

scp local_file remote_username@remote_ip:remote_file 

或者 

scp local_file remote_ip:remote_folder 

或者 

scp local_file remote_ip:remote_file 

第1,2个指定了用户名,命令执行后需要输入用户密码,第1个仅指定了远程的目录,文件名字不变,第2个指定了文件名 

第3,4个没有指定用户名,命令执行后需要输入用户名和密码,第3个仅指定了远程的目录,文件名字不变,第4个指定了文件名  

(2) 复制目录: 

命令格式: 

scp -r local_folder remote_username@remote_ip:remote_folder 

或者 

scp -r local_folder remote_ip:remote_folder 

 

从远程服务器复制到本地服务器

从远程复制到本地的scp命令与上面的命令雷同,只要将从本地复制到远程的命令后面2个参数互换顺序就行了。

 

实例1:从远处复制文件到本地目录

命令:

scp root@192.168.120.204:/opt/soft/nginx-0.5.38.tar.gz /opt/soft/

实例2:从远处复制到本地

命令:

scp -r root@192.168.120.204:/opt/soft/mongodb /opt/soft/

 

./bazel-bin/cyber/mainboard -d modules/tools/prediction/fake_prediction/fake_prediction.dag

cyber_recorder record -a

ROS     Cyber     备注
rosbag play example.bag     cyber_recorder play -f example.record     播放一个包
rosbag info example.bag     cyber_recorder info example.record     查看一个包的信息
rosbag record /apollo/canbus/chassis \ /apollo/canbus/chassis_detail     cyber_recorder record /apollo/canbus/chassis \ /apollo/canbus/chassis_detail     录制多个topic
rosbag filter input.bag output.bag ‘topic != “/apollo/planning”’     cyber_recorder split -f input_file.record -o ouput_file.record -k “/apollo/planning”     滤除一个topic
rosbag filter csc.bag csc_no_plannig_and_relativemap.bag ‘topic != “/apollo/planning” and “/apollo/relative_map”’     cyber_recorder split -f input_file.record -o ouput_file.record -k “/apollo/planning” -k “/apollo/relative_map”’     滤除多个topic
rostopic list     cyber_channel list     列出所有活动的topic
rostopic info /apollo/planning     cyber_channel info /apollo/planning     查看 /apollo/planning topic的概要信息
rostopic echo /apollo/planning     cyber_channel echo /apollo/planning     查看 /apollo/planning topic的内容
rostopic hz /apollo/planning     cyber_channel hz /apollo/planning     查看 /apollo/planning topic的发送频率
rostopic bw /apollo/planning     cyber_channel bw /apollo/planning     查看 /apollo/planning topic的带宽
rostopic type /apollo/planning     cyber_channel type /apollo/planning     查看 /apollo/planning topic的数据类型
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值