Notes with respect to uav-autonomous-landing

1.Run three terminals according to README

# 1-first 
sudo echo "${YOUR_REPO_PATH}/devel/setup.bash" >> ~/.bashrc

# 2- three terminal
# 2.1 UAV & UGV
roslaunch takeoff both.launch
# 2.2 detection & tracking
roslaunch uav_vision detection_tracking.launch
# 2.3 ped_traj & kf
roslaunch ped_traj_pred kalman_pred.launch

After roslaunch three terminals above,the pop-ups dialog will stuck.

2.How to replace the joystick with rostopic inputs

在这里插入图片描述In the view of rosgraph, maybe we can replace the joysticks with some commands below.

# 1.发布消息代替joy_stick,控制UGV

rostopic pub [topic] [msg_type] [args]

## 起飞 takeoff
rostopic pub -1 /ardrone/takeoff std_msgs/Empty
rostopic pub /ardrone/takeoff std_msgs/Empty

## 降落 land

rostopic pub -1 /ardrone/land std_msgs/Empty

## 强制降落 force_land

rostopic pub -1 /ardrone/force_land std_msgs/Empty

## toggle_state 

rostopic pub -1 /ardrone/reset std_msgs/Empty

## 发布速度

rostopic pub -1 /ardrone/cmd_vel geometry_msgs/Twist -- '[0.0,0.0,1.0]' '[0.0,0.0,1.8]'

## ardrone_togglecam,触发相机

rostopic pub -1 /ardrone/togglecam std_msgs/Empty

3.Errors

I do roslaunch three terminals, but when I input the “takeoff” command it failed! If I just roslaunch both.launch alone, then input this command it works, UGV will move at a circular path.Here are some errors to refer
在这里插入图片描述
在这里插入图片描述在这里插入图片描述

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值