andybarry / flight

Flight code for MIT CSAIL Robot Locomotion Group flying-through-forests project
https://groups.csail.mit.edu/locomotion/
Other
976 stars 264 forks source link

questions about framework used in your project #5

Closed linzha0 closed 7 years ago

linzha0 commented 8 years ago

Hi I am super new to LCM an just went through homepage about the introduces and tutorials. But it seems no detail tutorials. I have experiences in ROS but want to use some small framework to develop our project. Algorithm processed in onboard computer( arm ubuntu) with copter to avoid obstacles.

Can I ask questions about framework which integrated in your whole project. Is that LCM connected every module together like several ROS nodes with pub/sub mechanism. It seems that LCM use broadly in multi-mechines communication not computer threads.

I try to use the flight controller API (drone-python) to communicate between onboard computer and Pixhawk which uses APM copter firmware. Because that's more stable and functional API. And stereo-camera with opencv to acquire obstacle data in c++, like depth map, etc. I wan to use LCM sub/pub message mechanism to wrap this two modules. maybe more modules in the future. Is that possible?

Please correct my misunderstanding and give me some suggestions. Thanks for your help.

andybarry commented 8 years ago

Hi,

Yes, I saw your message on the LCM list. LCM is a message passing system, similar to ROS pub/sub, but with some small differences. There is no master in LCM and traffic is sent via UDP multicast. There are some good tutorials here: https://lcm-proj.github.io/tutorial_general.html

On Wed, Jun 1, 2016 at 1:52 AM, CrazyPopLin notifications@github.com wrote:

Hi I am super new to LCM an just went through homepage about the introduces and tutorials. But it seems no detail tutorials. I have experiences in ROS but want to use some small framework to develop our project. Algorithm processed in onboard computer( arm ubuntu) with copter to avoid obstacles.

Can I ask questions about framework which integrated in your whole project. Is that LCM connected every module together like several ROS nodes with pub/sub mechanism. It seems that LCM use broadly in multi-mechines communication not computer threads.

I try to use the flight controller API (drone-python) http://python.dronekit.io/ to communicate between onboard computer and Pixhawk which uses APM copter firmware. Because that's more stable and functional API. And stereo-camera with opencv to acquire obstacle data in c++, like depth map, etc. I wan to use LCM sub/pub message mechanism to wrap this two modules. maybe more modules in the future. Is that possible?

Please correct my misunderstanding and give me some suggestions. Thanks for your help.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andybarry/flight/issues/5, or mute the thread https://github.com/notifications/unsubscribe/ABPVqh_m7-eUneJQtxPSXyq5XprO2_5Nks5qHR47gaJpZM4IrNbA .