Difference between revisions of "Day 8"
From Bambi
(Created page with "#Reorganize px4-firmware repo: #* Forked sitl-Gazebo and added as submodule, in order to create bambi world and models. #Set up simulation to develop and test obstacle avoida...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
#* Forked sitl-Gazebo and added as submodule, in order to create bambi world and models. | #* Forked sitl-Gazebo and added as submodule, in order to create bambi world and models. | ||
#Set up simulation to develop and test obstacle avoidance: | #Set up simulation to develop and test obstacle avoidance: | ||
− | #*Add <code>iris_rplidar</code> model in bambi world. N.B to make the lidar works properly we had to change rayGPU plugin to the standard ray plugin which uses CPU. Moreove we notice strange outputs when the drone is in flight (random short distances,less then 35cm, outputs) so we increase the minimum detected distance to 40cm which is a bit more than the iris frame dimension. | + | #*Add <code>iris_rplidar</code> model in bambi world. N.B to make the lidar works properly we had to change rayGPU plugin to the standard ray plugin which instead uses CPU. Moreove we notice strange outputs when the drone is in flight (random short distances,less then 35cm, outputs) so we increase the minimum detected distance to 40cm which is a bit more than the iris frame dimension. |
+ | #* Disabled down-facing lidar as suggested in https://github.com/PX4/Firmware/issues/9156 otherwise Gazebo crashes reporting segmentation fault. | ||
+ | #Added first '''non-working''' implementation of '''Repulsive Force Field Obstacle Avoidance''' in px4 <code>mc_pose_control_main.cpp</code>: | ||
+ | #*Subscribed to uORB topic <code>obstacle_distance</code> and injected obstacle repulsive thrust vector summing it with setpoint thrust computed by velocity controller. The resulting thrust is then sent to <code>mc_attitude_controller</code>. |
Latest revision as of 10:30, 12 August 2018
- Reorganize px4-firmware repo:
- Forked sitl-Gazebo and added as submodule, in order to create bambi world and models.
- Set up simulation to develop and test obstacle avoidance:
- Add
iris_rplidar
model in bambi world. N.B to make the lidar works properly we had to change rayGPU plugin to the standard ray plugin which instead uses CPU. Moreove we notice strange outputs when the drone is in flight (random short distances,less then 35cm, outputs) so we increase the minimum detected distance to 40cm which is a bit more than the iris frame dimension. - Disabled down-facing lidar as suggested in https://github.com/PX4/Firmware/issues/9156 otherwise Gazebo crashes reporting segmentation fault.
- Add
- Added first non-working implementation of Repulsive Force Field Obstacle Avoidance in px4
mc_pose_control_main.cpp
:- Subscribed to uORB topic
obstacle_distance
and injected obstacle repulsive thrust vector summing it with setpoint thrust computed by velocity controller. The resulting thrust is then sent tomc_attitude_controller
.
- Subscribed to uORB topic