![]() | 1 | initial version |
The mutexes are straighforward mutexes which I would assume are there to prevent the cmd_vel object from being accessed when it is being updated in the callback. Normally there must be another thread which has access to cmd_vel probably for publishing to the drone.
cmd_vel seems to be a variable that is in scope for both the callback and the part of the program that sends commands to the ardrone. this usually means that it is a class variable or a global variable (poor practice) -- actually it is a global variable in the file linked.
Not sure on the parrot drone, but I'd expect it would be sending some type of serial message in the ardronedriver,checkout the ardrone_tool package (not in this repository)
I think this is for a companion computer to the ardrone
Have a look in the ardronedriver.cpp, it has a loop where information is recieved and published to the drone.
It appears the ardronedriver.cpp does this conversion. Though the actual comms is from a package called ardrone_tool that is not included in the repository. look at the ardrone_sdk.hpp's #include statements.
![]() | 2 | No.2 Revision |
The mutexes are straighforward mutexes which I would assume are there to prevent the cmd_vel object from being accessed when it is being updated in the callback. Normally there must be another thread which has access to cmd_vel probably for publishing to the drone.
cmd_vel seems to be a variable that is in scope for both the callback and the part of the program that sends commands to the ardrone. this usually means that it is a class variable or a global variable (poor practice) -- actually it is a global variable in the file linked.
Not sure on the parrot drone, but I'd expect it would be sending some type of serial message in the ardronedriver,checkout the ardrone_tool package (not in this repository)
I think this is for a companion computer to the ardrone
Have a look in the ardronedriver.cpp, it has a loop where information is recieved and published to the drone.
8. It appears the ardronedriver.cpp does this conversion. Though the actual comms is from a package called ardrone_tool that is not included in the repository. look at the ardrone_sdk.hpp's #include statements.