jsk-ros-pkg / jsk_aerial_robot

The platfrom for aerial robot (e.g. general multirotor, hydrus, di, dragon, etc)
http://www.jsk.t.u-tokyo.ac.jp/index-j.html
33 stars 33 forks source link

JoyがあるときAcc controlができなくなる問題 #279

Closed chibi314 closed 3 months ago

chibi314 commented 5 years ago

https://github.com/tongtybj/aerial_robot/blob/master/aerial_robot_base/src/flight_navigation.cpp#L472-L485 を見ると分かるようにjoystickのcallbackに入ると指令値が上書きされるため,/uav/navにpublishしても反映されないという問題がある.

このあたりの仕様について一度整理したい.

tongtybj commented 5 years ago
tongtybj commented 5 years ago

1と2は新しいPRで対応するとして、 3はhttps://github.com/tongtybj/aerial_robot/pull/276 で直します。

tongtybj commented 5 years ago

あと、 naviCallbackにある[force_att_controlflag]()は全部消すべき.

force_att_control_flag_はそもそもテレオペによる強制関与を示す変数なので、この関数内で値をいじれるのはおかしい。むしろ、if(force_att_control_flag_) return;を入れるべき