Skip to content

Commit

Permalink
add shfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Mar 29, 2022
1 parent 7cbd67f commit 55b5cf3
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 7 deletions.
Binary file added 3rd_party.zip
Binary file not shown.
13 changes: 6 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
## 第三章:飞控的安装与接线
* 一定要注意电调信号线顺序!!!
<img src="images\电机方向.jpg" alt="电机方向" style="zoom: 15%;" />

* 飞控箭头与机头同向为正向,任意方向旋转90°的倍数也可以,后续可以在飞控设置内调整,推荐和视频内相同朝向摆放。
* 强烈推荐使用硅胶杜邦线,常规杜邦线线材过硬,容易出现接触不良
* <font color="#dd0000">强烈推荐使用硅胶杜邦线,常规杜邦线线材过硬,容易出现接触不良。</font>
* 5V稳压模块注意贴黑胶带绝缘,周围注意贴一圈厚的海绵胶带来防止飞机降落时损坏5V模块,也可以考虑把5V模块用扎带扎在机臂旁边

## 第四章:飞控设置与试飞

* 请烧录本git项目下的`/firmware/1.11.0.px4`固件
* 请烧录本git项目下的`/firmware/px4_fmu-v5_default.px4`固件,这个固件是官方1.11.0版本固件编译而来,如有需要可以自行编译。实测1.13版本固件存在BUG,不建议使用,更老的固件版本未经测试。

* 在飞控的sd卡的根目录下创建`/etc/extras.txt`,写入

Expand Down Expand Up @@ -99,7 +99,7 @@
* `cd /opt/ros/noetic/lib/mavros`
* `sudo ./install_geographiclib_datasets.sh`
* 安装ceres与glog与ddyanmic-reconfigure
* 解压
* 解压`3rd_party.zip`压缩包
* 进入glog文件夹打开终端
* `./autogen.sh && ./configure && make && sudo make install`
* `sudo apt-get install liblapack-dev libsuitesparse-dev libcxsparse3.1.2 libgflags-dev libgoogle-glog-dev libgtest-dev`
Expand All @@ -111,11 +111,10 @@
* `sudo make install`
* `sudo apt-get install ros-noetic-ddynamic-reconfigure`
* 下载ego-planner源码并编译
* `mkdir fast_drone_ws/src`
* `cd fast_drone_ws/src`
* `git clone https://github.com/ZJU-FAST-Lab/Fast-Drone-250`
* `cd ..`
* `cd Fast-Drone-250`
* `catkin_make`
* `source devel/setup.bash`
* `roslaunch ego_planner sing_run_in_sim.launch`
* 在Rviz内按下键盘G键,再单击鼠标左键以点选无人机目标点

Expand Down
2 changes: 2 additions & 0 deletions shfiles/checkcpu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor & sleep 1;
cat /proc/cpuinfo |grep MHz|uniq & sleep 1;
1 change: 1 addition & 0 deletions shfiles/land.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rostopic pub -1 /px4ctrl/takeoff_land quadrotor_msgs/TakeoffLand "takeoff_land_cmd: 2"
3 changes: 3 additions & 0 deletions shfiles/make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

catkin_make --pkg quadrotor_msgs -DCMAKE_BUILD_TYPE=Release
catkin_make -DCMAKE_BUILD_TYPE=Release
19 changes: 19 additions & 0 deletions shfiles/record copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
rosbag record --tcpnodelay \
/vins_estimator/extrinsic \
/vins_estimator/keyframe_point \
/vins_estimator/keyframe_pose \
/vins_estimator/margin_cloud \
/vins_estimator/odometry \
/vins_fusion/camera_pose \
/vins_fusion/camera_pose_visual \
/vins_fusion/extrinsic \
/vins_fusion/image_track \
/vins_fusion/imu_propagate \
/vins_fusion/key_poses \
/vins_fusion/keyframe_point \
/vins_fusion/keyframe_pose \
/vins_fusion/margin_cloud \
/vins_fusion/odometry \
/vins_fusion/path \
/vins_fusion/point_cloud

13 changes: 13 additions & 0 deletions shfiles/record.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rosbag record --tcpnodelay \
/drone_0_ego_planner_node/goal_point \
/ego_planner_node/global_list \
/drone_0_ego_planner_node/optimal_list \
/ego_planner_node/a_star_list \
/drone_0_ego_planner_node/init_list \
/drone_0_odom_visualization/path \
/drone_0_ego_planner_node/grid_map/occupancy_inflate \
/drone_0_odom_visualization/robot \
/vins_fusion/path \
/vins_fusion/odometry \
/camera/infra1/image_rect_raw \
/position_cmd \
5 changes: 5 additions & 0 deletions shfiles/rspx4.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sudo chmod 777 /dev/ttyACM0 & sleep 2;
roslaunch realsense2_camera rs_camera.launch & sleep 10;
roslaunch mavros px4.launch & sleep 10;
roslaunch vins fast_drone_250.launch
wait;
2 changes: 2 additions & 0 deletions shfiles/sys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo cpufreq-set -g performance
sudo chmod 777 /dev/ttyACM0 & sleep 2;
1 change: 1 addition & 0 deletions shfiles/takeoff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rostopic pub -1 /px4ctrl/takeoff_land quadrotor_msgs/TakeoffLand "takeoff_land_cmd: 1"

0 comments on commit 55b5cf3

Please sign in to comment.