Gráfico de Commits

158 Commits

Autor SHA1 Mensagem Data
Mike Hamer 784df9925e Full-Speed Navdata & Loop-Rate
Two new parameters have been added:
* `fullspeed_navdata`, which controls whether new-style navdata is published when received, or at `looprate`
* `looprate`, which controls the speed of the internal ros-loop. Note that legacy navdata is always published at `looprate`

Also made various speed improvements to the navdata processing pipeline to enable this faster processing.

Also fixed a problem with `enable_legacy_navdata`, whereby it wasn't read correctly and thus had no effect. Also mentioning it here because I forgot to mention it when I added it ages ago.

Also updated and commented the launch file to reflect these changes.

Regarding testing, I've flown with this for three batteries, with `fullspeed_navdata=true`, `looprate=50`, while rosbagging everything and experienced no unusual behaviour.

Conflicts:

	src/ardrone_driver.h
2012-11-23 15:42:42 -08:00
Mike Hamer 8edc093b96 This comment doesn't seem to be valid any more? 2012-11-23 15:38:55 -08:00
Mani Monajjemi 39b5580296 Fixed bug in auto hover preventation #38. Also reversed the logic for
`hover` variable to make the logic correct.
2012-11-23 15:06:43 -08:00
Mani Monajjemi 837c4bcfb3 Merge pull request #38 from mikehamer/master
navdata_packet.header now filled, also using cmd_vel.angular.x/y != 0 for hover
2012-11-23 14:15:12 -08:00
Mike Hamer b3ef0f186d navdata_<packet>.header is now correctly filled
Header.stamp and header.frame_id are now correctly filled. Messages are
also now member variables rather than local to save initialization time.
2012-11-23 10:42:43 +01:00
Mike Hamer 01185e9788 cmd_vel.angular.x/y != 0 will disable hover mode
Removed ros params command_disable_hover and command_always_send, in
favour of disabling hover manually by setting cmd_vel.angular.x=1 or
cmd_vel.angular.y=1
2012-11-23 10:36:12 +01:00
Mani Monajjemi 8766a2a1ea Some comments added for future reference. 2012-11-22 16:14:26 -08:00
Mani Monajjemi c68b96f390 Minor bug that prevented build on groovy, fixes #35 @overbit 2012-11-22 15:51:37 -08:00
Mani Monajjemi a3fc39b0d2 Restoring sample launch file. 2012-11-22 15:47:16 -08:00
Mani Monajjemi 6a80eefdb1 Merge branch 'master' of https://github.com/mikehamer/ardrone_autonomy into mikehamer-master 2012-11-22 15:41:14 -08:00
Mike Hamer cb4179f2f7 Moved launch file to an aggressive launch 2012-11-22 10:25:56 +01:00
Mani Monajjemi 08aa3189d5 README updated to include more information about new parameters 2012-11-21 15:17:46 -08:00
Mike Hamer 4057b6e821 Updated to include some new flags and enable more aggressive flight
This is an aggressive launch file, you should turn down the
euler_angle_max, control_vz_max and control_yaw if you are not
interested in aggressive flight!
2012-11-21 18:29:36 +01:00
Mike Hamer 96a7a480a3 Merge branch 'more-navdata' 2012-11-21 18:25:54 +01:00
Mike Hamer 0c42f257ba No more cache stuff! 2012-11-21 18:08:43 +01:00
Mike Hamer 1b7074de37 Added enable_legacy_navdata (true by default)
This flag allows us to turn off the legacy navdata/imu/mag topics,
favouring usage of the actual packets
2012-11-21 17:26:04 +01:00
Mike Hamer 24529cd596 Added the ability to disable hover mode and constantly send commands
As per parcon's suggestion, I'm adding the ability to disable the hover
mode to allow for more predictable and thus modellable drone dynamics.
This should also be useful for my purposes.
2012-11-21 12:55:45 +01:00
Mike Hamer 54d6fff7bf Enabling all messages
Still to do is add a flag to disable the default navdata and imu
messages
2012-11-21 12:53:54 +01:00
Mike Hamer ca5fadf778 Added custom messages and handling code
We now have the ability to access any of the navdata structs which are
sent back by the drone. Still to do is to enable/disable the drone
sending based on whether we're interested in receiving the message.
2012-11-21 12:53:33 +01:00
Mike Hamer 2fc267c869 Revert "NOT FINISHED: Incorporating custom messages into code"
This reverts commit f46a7adf89.
2012-11-16 13:54:08 +01:00
Mike Hamer f46a7adf89 NOT FINISHED: Incorporating custom messages into code
Sorry for the commit, I wanted to switch back to the main branch for a
while
2012-11-14 14:37:02 +01:00
Mike Hamer efaa64c047 Added custom navdata messages and message generator 2012-11-14 14:36:24 +01:00
Mani Monajjemi 13145dc1ba Merge pull request #27 from mikehamer/master
Now only loads the writeable subset of drone parameters
2012-11-13 16:43:06 -08:00
Mike Hamer 5d48b4d0ef Updated README to include tm format
Optimally this would be calculated before being published to Navdata,
but for backwards compatibility lets document the format for now, and
discuss an additional unpacked time
2012-11-13 11:42:36 +01:00
Mani Monajjemi 13bb31ff12 Minor formatting 2012-11-12 12:02:37 -08:00
Mani Monajjemi 73e9a53a67 Information about branch added to the README 2012-11-12 12:01:25 -08:00
Mike Hamer 712a24bb3e Fixed launch file
I forgot to remove the debug output from the launch file last time
2012-11-12 17:30:17 +01:00
Mike Hamer d1de36328d A more sensible launch file for most people
I reset the very aggressive flight parameters to the defaults (eg
relatively slow and controllable)
2012-11-12 17:12:11 +01:00
Mike Hamer b72793b89f Will now only read rosparams for writeable drone parameters
I put a further check on the parameter parsing code, which checks the
parameter definition to see if it is writeable before trying to find a
ros parameter
2012-11-12 16:45:01 +01:00
Mike Hamer 699fa5a3b6 Revert "will now only read rosparams for writeable drone parameters"
This reverts commit 3ec0db04aa.
2012-11-12 16:42:53 +01:00
= 3ec0db04aa will now only read rosparams for writeable drone parameters 2012-11-12 16:21:48 +01:00
Mani Monajjemi 0dc6a2a84b Manually merging #25 to add magnetometer topic (by @sameerparekh) 2012-11-09 18:37:23 -08:00
Mani Monajjemi 0b58364a5c Add backward compatibilty support for -ip command line argument 2012-11-09 17:43:53 -08:00
Mani Monajjemi b5c57a3849 Launch file moved to its own folder. README updated for launch file. 2012-11-09 16:54:18 -08:00
Mike Hamer 4f568c100c Bug Fix
I've fixed the bug causing parameter changes to have no effect on the
drone. Now we do a proper setup of the drone tool (rather than using
the factory default), which includes setting up application and user
profiles on the drone to hold our settings. We then actually send the
parameters to the drone, rather than doing nothing. The parameters
system has been extended to allow all user-modifyable parameters to be
changed (see AR.Drone SDK manual).
2012-11-09 10:14:14 +01:00
Mike Hamer d1d4cd1532 .gitignore results of build operation and added launch file 2012-11-07 14:31:16 +01:00
Mani Monajjemi 99d0436d1e Added missing file, rosdoc.yaml 2012-10-30 16:56:13 -07:00
Mani Monajjemi 6bab013d70 Added flattrim service (fixes #18). Updated documentation. Some minor
files/functions cleanup.
2012-10-30 16:53:53 -07:00
Mani Monajjemi 23c29727fd Added required rosdoc configurations to exclud from documentation 2012-10-30 15:38:25 -07:00
Mani Monajjemi fec6fc0723 Minor Readme update to fix #16 and address #15 2012-10-17 16:25:16 -07:00
Mani Monajjemi acc441ec98 Merge pull request #14 from tomh05/bugfix-timestamp
Ensure timestamps are consistent for camera image and info. Fixes #13
2012-10-11 17:08:40 -07:00
Tom Howe 9efbd40019 ardrone_driver.cpp: ensure timestamps are consistent
Calling ros::Time::now() doesn't guarantee timestamps are matched as
ros::Time::now() can change between calls. This fix sets the timestamps to be
equal, to ensure consistency.

This addresses issue #13.
2012-10-11 15:16:01 +01:00
Mani Monajjemi 60f858e36f Mutex added for twist commands. 2012-09-13 17:23:34 -07:00
Mani Monajjemi 295f2795d9 Minor README polish 2012-09-05 19:16:49 -07:00
Mani Monajjemi de2834bf0c Minor README modifications 2012-09-05 19:10:45 -07:00
Mani Monajjemi 27008cc5b5 Major documentation update. Sample camera caliberation file updated. 2012-09-05 18:43:04 -07:00
Mani Monajjemi 25ac4a9f8a Automatic IMU caliberation can now be disabled using
`do_imu_caliberation` rosparam and reset using `imu_recalib` service.
The `cmd_vel` queue size resized to 1.
2012-09-05 17:22:59 -07:00
Mani Monajjemi 337555f43b UINT64_C macro definition in case it is not defined by stdint.h. fixes 2012-08-29 17:15:13 -07:00
Mani Monajjemi 4e4da04e1a Minor documentation update. Fixes #4 2012-08-28 18:36:08 -07:00
Mani Monajjemi dddaeb7b1f Minor edit. Fixes #6 2012-08-28 18:16:31 -07:00