-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
#### 一、使用说明 | ||
|
||
1. 请自行配置PX4和XTDrone环境,下载QGC地面站,并将地面站QGroundControl.AppImage放在scripts文件夹下。 | ||
1. 请[自行配置PX4和XTDrone环境](https://www.yuque.com/xtdrone/manual_cn/basic_config_13)(具体为ros noetic + px4 1.13),下载QGC地面站,并将地面站QGroundControl.AppImage放在scripts文件夹下。 | ||
2. 阅读scripts脚本目录下的start.sh文件,修改相应配置,'dji'中修改为自己电脑密码。 | ||
|
||
``` | ||
echo 'dji' | sudo -S chmod 777 QGroundControl.AppImage | ||
``` | ||
|
||
3. 运行scripts脚本目录下的start.sh即可,目前为测试版本。现对代码进行说明: | ||
- **测试版本需模拟公司发送数据**,即在仿真初始化完毕后,运行/communication/scripts下的company_to_group6.py程序,发布话题"/ResearchGroup5ResultTest"给receive_company_data.py进行接收。正式版本不需要模拟发送公司数据,但是需要修改receive_company_data.py中接收话题名称为"/ResearchGroup5Result”。(两个版本不同的具体原因:ROS不能存在两个相同名称的话题) | ||
- communication/json文件夹下为各个课题具体数据,test.json为测试数据,用于测试版本。目前该数据由课题五提供,存在每个任务规划的path最后两个点相同,导致路径生成代码报错。 | ||
3. 运行scripts脚本目录下的start.sh即可。目前为正式版本。现对代码进行说明: | ||
- TEST_FLAG为是否开启测试,为0时接收公司方数据;为1时为测试模式,模拟公司方发布数据。 | ||
- **测试版本模拟公司发送数据**,即在仿真初始化完毕后,运行/communication/scripts下的company_to_group6.py程序,发布话题"/ResearchGroup5ResultTest"给receive_company_data.py进行接收。正式版本不需要模拟发送公司数据,但是需要修改receive_company_data.py中接收话题名称为"/ResearchGroup5Result”。(两个版本不同的具体原因:ROS不能存在两个相同名称的话题) | ||
- communication/json文件夹下为各个课题具体数据,test.json为测试数据,用于测试版本。目前该数据由课题五提供,存在每个任务规划的path最后两个点相同,导致路径生成代码报错。(目前已解决) | ||
- 数据处理部分需注意,所有WGS84坐标系均转化为MAVROS使用的ENU坐标系,之后PX4接收到来自MAVROS的ENU坐标系数据后,会自行转化为NED坐标系。同理,无人机数据发送给公司时,需将来自gazebo的ENU数据转化为WGS84数据。 | ||
- QGC地面站参数通过mavros_msgs下的ParamSet服务进行修改,具体代码可参考fixed_wing_formation下的QGC_param_set.py代码。 | ||
|
||
#### 二、后续工作 | ||
|
||
1. 四旋翼代码接入:思考如何修改QGC中的EKF参数(可参考QGC_param_set.py) 思考如何模拟深度数据(越简单越好) | ||
2. 如何解决固定翼飞机的local坐标系原点为px4上电位置(获取固定翼飞机在gazebo中初始化的位置表,课题七还还还还没给我们) | ||
3. 空速无法到达60m/s,可能需要等比例缩放数据。 | ||
2. 如何解决固定翼飞机的local坐标系原点为px4上电位置(获取固定翼飞机在gazebo中初始化的位置表,课题七还没给我们) | ||
3. 空速无法到达60m/s,可能需要等比例缩放数据。(可行解决办法:修改gazebo中plane模型动力相关参数,修改混控器等) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters