]>
rtime.felk.cvut.cz Git - orte.git/log
Martin Vajnar [Mon, 29 Sep 2014 19:10:59 +0000 (21:10 +0200)]
JORTE: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings
Ignore int-to-pointer and pointer-to-int compiler conversion warnings,
since we are storing 32-bit (64-bit) pointers in 64-bit java fields.
Martin Vajnar [Mon, 29 Sep 2014 18:50:40 +0000 (20:50 +0200)]
ANDROID: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings
Ignore int-to-pointer and pointer-to-int compiler conversion warnings,
since we are storing 32-bit (64-bit) pointers in 64-bit java fields.
This should make the output of 'ndk-build' script more readable.
Martin Vajnar [Sun, 11 May 2014 18:51:50 +0000 (20:51 +0200)]
Document gAVL, linked list and queue declaration
Michal Sojka [Tue, 15 Apr 2014 08:38:38 +0000 (10:38 +0200)]
Document gAVL declaration
Martin Vajnar [Tue, 8 Apr 2014 11:48:31 +0000 (13:48 +0200)]
ROBOT_DEMO: reduce WifiLocks usage
Use WifiLock only for MotionSpeedPublisher.
Martin Vajnar [Tue, 8 Apr 2014 09:09:11 +0000 (11:09 +0200)]
ROBOT_DEMO: move to contribs
Martin Vajnar [Tue, 8 Apr 2014 08:51:27 +0000 (10:51 +0200)]
JORTE: fix bug in subscriber callback
This fixes a rarely occurring bug in subscriber callback.
When a Java subscriber is being destroyed, during the process
a JORTECallbackContext_t structure, used for storing pointers to Java objects,
was free()'d. If this occurred when new issue had arrived and was being
processed by the receive thread, then the pointer to the, now non-existent,
callback structure would have been dereferenced, leading to a SEGFAULT.
To fix this we now create a pointer to pointer to the specific structure
and pass this pointer to ORTESubcriptionCreate() and use it from the recvCallBack().
Martin Vajnar [Tue, 4 Feb 2014 19:57:42 +0000 (20:57 +0100)]
RoboDruid: use Toasts for short messages
Martin Vajnar [Sun, 2 Feb 2014 12:37:44 +0000 (13:37 +0100)]
RoboDruid: make release build
Martin Vajnar [Sat, 1 Feb 2014 17:19:11 +0000 (18:19 +0100)]
RoboDruid: organize classes into packages
Martin Vajnar [Thu, 23 Jan 2014 22:19:36 +0000 (23:19 +0100)]
RoboDruid: improve handling of short taps
Martin Vajnar [Wed, 22 Jan 2014 23:19:14 +0000 (00:19 +0100)]
RoboDruid: toggle Hokuyo output and speed control/monitor by touch input
Single tap on Hokuyo output starts/stops subscriber.
Single tap on speed vector starts/stops subscriber,
long tap starts/stops publisher.
Martin Vajnar [Wed, 23 Oct 2013 07:29:46 +0000 (09:29 +0200)]
ROBOT_DEMO: use new constants and fix behavior of callback functions
Test the receive status to see whether the callback function was called
because of new new data reception or because of a deadline expiration.
Martin Vajnar [Wed, 23 Oct 2013 07:29:05 +0000 (09:29 +0200)]
JORTE: add missing constants from "typedefs_api.h"
Martin Vajnar [Mon, 23 Sep 2013 13:14:43 +0000 (15:14 +0200)]
Revert "JORTE: update license headers and clean-up includes"
This reverts commit
51bf20f848625b4b9ec02dc016537945efc21a02 .
Martin Vajnar [Sun, 22 Sep 2013 13:02:07 +0000 (15:02 +0200)]
JORTE: update license headers and clean-up includes
Martin Vajnar [Fri, 13 Sep 2013 13:58:20 +0000 (15:58 +0200)]
ANDROID: add instructions to build
Martin Vajnar [Fri, 13 Sep 2013 13:31:38 +0000 (15:31 +0200)]
ANDROID: allow compilation from command line add new orte_config.h
This allows compilation of native code with ndk-build and of Java part with
ant.
Martin Vajnar [Fri, 13 Sep 2013 10:08:23 +0000 (12:08 +0200)]
JORTE: fix incompatible pointer type compiler warnings
Android's AttachCurrentThread() implementation differs from Oracle's.
In Android the prototype is:
jint (*AttachCurrentThread)(JavaVM*, JNIEnv**, void*);
In Oracle's Java:
jint (JNICALL *AttachCurrentThread)(JavaVM *vm, void **penv, void *args);
Android expects JNIEnv** pointer, whereas Java expects void** pointer
to per thread environment structure.
Martin Vajnar [Fri, 13 Sep 2013 08:25:26 +0000 (10:25 +0200)]
Merge branch 'master' of ssh://git@rtime.felk.cvut.cz/orte into android
Pavel Pisa [Thu, 12 Sep 2013 19:42:27 +0000 (21:42 +0200)]
Endianness test extended to use "sys/param.h" if available.
The "sys/param.h" file is expected to be more portable.
It should exist on Mac OS X, RTEMS and BSD.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Martin Vajnar [Thu, 12 Sep 2013 19:18:12 +0000 (21:18 +0200)]
ORTE: fix compiler warning
This allows compilation with Android NDK r9
(treats some warnings as errors).
Martin Vajnar [Thu, 12 Sep 2013 19:15:06 +0000 (21:15 +0200)]
ANDROID: fix for NDK r9
Remove LOCAL_LDLIBS since it is ignored for
static libraries.
Pavel Pisa [Thu, 12 Sep 2013 16:18:23 +0000 (18:18 +0200)]
Linux OMK configuration supports little- and big-endian targets without reconfigure.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Thu, 12 Sep 2013 16:12:52 +0000 (18:12 +0200)]
Execute test for target endianness only if "endian.h" is missing or unusable.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Martin Vajnar [Thu, 12 Sep 2013 15:55:46 +0000 (17:55 +0200)]
Merge branch 'master' of ssh://git@rtime.felk.cvut.cz/orte into android
Pavel Pisa [Wed, 11 Sep 2013 09:05:28 +0000 (11:05 +0200)]
Update hierarchic timers header files to version from uLUt library.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Wed, 11 Sep 2013 08:34:30 +0000 (10:34 +0200)]
Restore ORTE specific modifications to uLUt.
ORTE defines FREE macro to cover different systems
implementations and uses "orte_all.h" to cover different
set and names of system provided header files.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Michal Sojka [Tue, 10 Sep 2013 01:00:10 +0000 (03:00 +0200)]
Get rid of strict-aliasing warnings
The warning in question was:
warning: dereferencing type-punned pointer will break strict-aliasing rules
Now, we use union as parameterLocal to explicitly state that we use
this field to store different types.
Michal Sojka [Tue, 10 Sep 2013 00:02:36 +0000 (02:02 +0200)]
Make AC notice more precise
Michal Sojka [Mon, 9 Sep 2013 23:51:45 +0000 (01:51 +0200)]
A fix for mingw cross-compilation
Note: there are more things that need to be fixed.
Michal Sojka [Mon, 9 Sep 2013 23:11:39 +0000 (01:11 +0200)]
Add a hint when to run ./configure
Michal Sojka [Mon, 9 Sep 2013 22:58:29 +0000 (00:58 +0200)]
Fix warning about implicit declaration of umask()
I'm not yet sure whether the autoconf generated
orte/include/orte/orte_config.h is created correctly because
ORTE_PACKAGE and ORTE_VERSION is missing. But everything compiles
correctly so I leave it as it is.
Michal Sojka [Mon, 9 Sep 2013 22:49:19 +0000 (00:49 +0200)]
git: Ignore generated files
Michal Sojka [Mon, 9 Sep 2013 22:22:45 +0000 (00:22 +0200)]
Shut up compiler warning
Michal Sojka [Mon, 9 Sep 2013 22:20:42 +0000 (00:20 +0200)]
Apply configure.(in|ac) fixes suggested by autoreconf
Also prepare for checking for sys/stat.h.
Michal Sojka [Mon, 9 Sep 2013 21:47:15 +0000 (23:47 +0200)]
Add configuration for Emacs editor
Michal Sojka [Mon, 9 Sep 2013 21:25:58 +0000 (23:25 +0200)]
Update git URL in README
URL has changed due to upgrade at sourceforge.
Michal Sojka [Mon, 9 Sep 2013 20:40:02 +0000 (22:40 +0200)]
Update ul_gavl* files to kill some compiler warnings
I copied the files from upstream ulut repository
(git://git.code.sf.net/p/ulan/ulut).
Martin Vajnar [Thu, 29 Aug 2013 13:32:56 +0000 (15:32 +0200)]
ROBOT_DEMO: release correct wakelock
Martin Vajnar [Thu, 29 Aug 2013 09:08:17 +0000 (11:08 +0200)]
ROBOT_DEMO: minor fixes
Martin Vajnar [Wed, 28 Aug 2013 18:16:59 +0000 (20:16 +0200)]
ROBOT_DEMO: minor changes to UI
Martin Vajnar [Tue, 27 Aug 2013 13:40:30 +0000 (15:40 +0200)]
ROBOT_DEMO: allow managers setup without restart
Martin Vajnar [Tue, 27 Aug 2013 13:14:45 +0000 (15:14 +0200)]
ROBOT_DEMO: fix wake lock and revert speed computation change
Martin Vajnar [Tue, 27 Aug 2013 12:59:11 +0000 (14:59 +0200)]
ROBOT_DEMO: handle wifi/wake locks better
Acquire them only when needed and release otherwise.
Martin Vajnar [Tue, 27 Aug 2013 12:42:50 +0000 (14:42 +0200)]
ROBOT_DEMO: add check boxes to menu items and make the managers dialog alive
Martin Vajnar [Tue, 27 Aug 2013 11:03:50 +0000 (13:03 +0200)]
ROBOT_DEMO: change About dialog
Martin Vajnar [Tue, 27 Aug 2013 10:45:04 +0000 (12:45 +0200)]
ROBOT_DEMO: change ratio for speed computation
Martin Vajnar [Mon, 26 Aug 2013 20:30:58 +0000 (22:30 +0200)]
JORTE: add new constructor to Manager class
Martin Vajnar [Mon, 26 Aug 2013 20:26:58 +0000 (22:26 +0200)]
ROBOT_DEMO: add Dialog to set-up fellow managers
Martin Vajnar [Mon, 26 Aug 2013 12:31:54 +0000 (14:31 +0200)]
ANDROID: set min. Android version to 2.3.3
Martin Vajnar [Mon, 26 Aug 2013 12:31:17 +0000 (14:31 +0200)]
ROBOT_DEMO: add launcher icon for LDPI and change minSdkVersion to 10
Min. Android version is now 2.3.3.
Martin Vajnar [Mon, 26 Aug 2013 11:42:35 +0000 (13:42 +0200)]
ROBOT_DEMO: unify Dialog appearance
Martin Vajnar [Sun, 25 Aug 2013 22:08:52 +0000 (00:08 +0200)]
ROBOT_DEMO: add basic low-pass filter
Add basic low-pass filter for motion_speed publisher.
Change CTU logo size.
Martin Vajnar [Sun, 25 Aug 2013 21:02:08 +0000 (23:02 +0200)]
ROBOT_DEMO: add "About" dialog
Martin Vajnar [Sun, 25 Aug 2013 17:58:34 +0000 (19:58 +0200)]
ROBOT_DEMO: make use of WifiLock and modify WakeLock
Modify WakeLock, so that when acquired on activity start, it wakes up
the phone if then screen was already dimmed or switched off.
Add WifiLock to improve network latency and overall responsiveness.
This solves issues with slow and unreliable Publisher-Subscriber
communication.
Add margins to the CTU logo.
Martin Vajnar [Sun, 25 Aug 2013 15:05:47 +0000 (17:05 +0200)]
ROBOT_DEMO: change name to RoboDruid and add CTU logo
Martin Vajnar [Sun, 25 Aug 2013 11:16:06 +0000 (13:16 +0200)]
ANDROID: build for all ABIs supported by the NDK
Currently supported ABIs are:
armeabi - ARMv5te and higher
armeabi-v7a - ARMv7
mips
x86
Martin Vajnar [Sun, 25 Aug 2013 10:58:12 +0000 (12:58 +0200)]
ROBOT_DEMO: use Flamingos logo as launcher icon
Martin Vajnar [Sat, 24 Aug 2013 19:01:11 +0000 (21:01 +0200)]
ROBOT_DEMO: add more IP addresses to ORTE manager's list
Martin Vajnar [Sat, 24 Aug 2013 18:39:25 +0000 (20:39 +0200)]
ROBOT_DEMO: change lift to crane
Martin Vajnar [Sat, 24 Aug 2013 10:55:39 +0000 (12:55 +0200)]
JORTE: add wrapper for ORTESubscriptionPull() and revert ORTEDomainStart() removal
Martin Vajnar [Sat, 24 Aug 2013 09:35:23 +0000 (11:35 +0200)]
ROBOT_DEMO: add publishers for "crane_cmd" and "magnet_cmd"
Martin Vajnar [Fri, 23 Aug 2013 12:18:20 +0000 (14:18 +0200)]
ROBOT_DEMO: limit HOKUYO range
Martin Vajnar [Fri, 23 Aug 2013 11:49:46 +0000 (13:49 +0200)]
ROBOT_DEMO: implement voltage monitor
Martin Vajnar [Thu, 22 Aug 2013 20:44:46 +0000 (22:44 +0200)]
ROBOT_DEMO: prepare for voltage monitor
Add dialog for voltage monitor.
Martin Vajnar [Wed, 21 Aug 2013 21:03:31 +0000 (23:03 +0200)]
ROBOT_DEMO: add motion speed subscriber
Add motion speed monitor.
Martin Vajnar [Tue, 20 Aug 2013 17:48:01 +0000 (19:48 +0200)]
ROBOT_DEMO: draw scale in HokuyoView
Martin Vajnar [Mon, 19 Aug 2013 21:32:03 +0000 (23:32 +0200)]
ROBOT_DEMO: fix starting index and inverted logic
Martin Vajnar [Mon, 19 Aug 2013 21:06:31 +0000 (23:06 +0200)]
ROBOT_DEMO: scale HOKUYO view to fit the screen
Martin Vajnar [Mon, 19 Aug 2013 15:07:26 +0000 (17:07 +0200)]
ROBOT_DEMO: screen orientation for motion control
Force portrait screen orientation when motion control (motion_speed)
is active.
Martin Vajnar [Mon, 19 Aug 2013 12:52:02 +0000 (14:52 +0200)]
ROBOT_DEMO: enable screen rotation
Martin Vajnar [Tue, 6 Aug 2013 17:53:08 +0000 (19:53 +0200)]
ROBOT_DEMO: use higher sampling rate for accelerometer
Martin Vajnar [Tue, 6 Aug 2013 17:51:51 +0000 (19:51 +0200)]
ROBOT_DEMO: simplify MessageData types
Martin Vajnar [Tue, 6 Aug 2013 17:50:39 +0000 (19:50 +0200)]
ROBOT_DEMO: fix thread sync. problems better
Use ReentrantLock and ReentrantReadWriteLock for thread synchronization.
Martin Vajnar [Tue, 6 Aug 2013 09:24:04 +0000 (11:24 +0200)]
ROBOT_DEMO: simplify clearing screen
Martin Vajnar [Mon, 5 Aug 2013 21:37:29 +0000 (23:37 +0200)]
ROBOT_DEMO: fix sync. problems in publisher for "motion_speed"
Don't use synchronized(), because it may block the setSpeed() and prevent
receiving new data from accelerometer. The isSent variable is now used
to determine whether we need new data.
Add robot's IP address to the list of fellow managers.
Martin Vajnar [Mon, 5 Aug 2013 19:26:29 +0000 (21:26 +0200)]
ROBOT_DEMO: fix sync. problems in HokuyoView
Set new data only if the previous batch has been drawn and clone the newly
arrived data array. This prevents concurrent access problems when
the previous batch is being drawn on the UI thread and new data arrives
through ORTE's receive thread.
Martin Vajnar [Mon, 5 Aug 2013 17:50:53 +0000 (19:50 +0200)]
ROBOT_DEMO: set minimum separation for "hokuyo_scan"
Compensate for drawing artifacts. Set minSeparation to 0.18s.
Martin Vajnar [Mon, 5 Aug 2013 16:42:23 +0000 (18:42 +0200)]
ROBOT_DEMO: correct speed computation
Correct calculation of speed sent to motors when moving in reverse.
Martin Vajnar [Fri, 26 Jul 2013 08:59:36 +0000 (10:59 +0200)]
ROBOT_DEMO: MessageData clean up
Martin Vajnar [Fri, 26 Jul 2013 08:44:46 +0000 (10:44 +0200)]
JORTE: improve ByteOrder handling
Store the ByteOrder of MessageData's ByteBuffer in receive callback
structure in C (in case someone reuses already created MessageData instance
with new subscriber).
Force native byte order setting in publisher.
Martin Vajnar [Fri, 26 Jul 2013 08:00:15 +0000 (10:00 +0200)]
ORTE,JORTE: set byte order of ByteBuffer from receive callback
Pass data_endian in ORTERecvInfo structure and use it to set the byte order
of Java's ByteBuffer.
Martin Vajnar [Fri, 26 Jul 2013 07:54:03 +0000 (09:54 +0200)]
Revert "JORTE: add deserialize function to support endianness setting"
This reverts commit
683e5f61f3e7b6c1ade1b4910264d8f96781ade0 .
Martin Vajnar [Fri, 26 Jul 2013 07:53:49 +0000 (09:53 +0200)]
Revert "ORTE: add support for param structure in TypeRegister"
This reverts commit
3ee9dd9cded871b38859b1881c4d98548f5b688e .
Martin Vajnar [Fri, 26 Jul 2013 07:53:38 +0000 (09:53 +0200)]
Revert "JORTE: switch from deserialize function to endianness callback"
This reverts commit
fe36c69fd0d022fafc9acf3a51ca1ba780978f35 .
Martin Vajnar [Fri, 26 Jul 2013 07:53:24 +0000 (09:53 +0200)]
Revert "ROBOT_DEMO: incorporate new TypeRegister handling"
This reverts commit
f4af31a4b00c130eb5fb67fcc1012dd5d205ea7a .
Martin Vajnar [Fri, 26 Jul 2013 07:53:06 +0000 (09:53 +0200)]
Revert "ROBOT_DEMO: incorporate changes in ORTETypeRegisterAdd()"
This reverts commit
4e4e50c8a29fc3a2cf37d681e7f95b3d5e01d932 .
Martin Vajnar [Thu, 25 Jul 2013 17:11:47 +0000 (19:11 +0200)]
ROBOT_DEMO: incorporate changes in ORTETypeRegisterAdd()
Martin Vajnar [Thu, 25 Jul 2013 12:46:19 +0000 (14:46 +0200)]
ROBOT_DEMO: incorporate new TypeRegister handling
Martin Vajnar [Thu, 25 Jul 2013 12:45:43 +0000 (14:45 +0200)]
JORTE: switch from deserialize function to endianness callback
Yesterday's attempt at setting the byte order of ByteBuffer through
a deserialize function has one significant drawback and that is if more
than one data type is defined under one VM instance (thus accessible by
other threads) and subscribers are then registered for these data types
the deserialize function will stop working correctly, because there are
no parameter structures being passed to it, except for the CDR_Codec,
thus it had to use a global reference to a byte buffer which is
unfortunately overwritten the moment a new data type is registered.
If the deserialize function for the previously registered data type
is invoked it then tampers with ByteBuffer settings of a newly registered
data type.
Martin Vajnar [Thu, 25 Jul 2013 12:38:26 +0000 (14:38 +0200)]
ORTE: add support for param structure in TypeRegister
This adds support for user defined callback function processEndianness()
with processParam structure being set at Type creation and passed
to processEndianness().
The processEndianness() function is called if defined and if there is no
deserialization function and thus no other way for the user application to
know the byte order of received issue.
Martin Vajnar [Wed, 24 Jul 2013 20:55:24 +0000 (22:55 +0200)]
JORTE: add deserialize function to support endianness setting
This adds implementation of deserialize function which sets proper byte
order for Java's ByteBuffer based on the received data's endianness.
Serialize function is not needed as long as the byte order of Java's
ByteBuffer is not manually changed from native byte order.
Martin Vajnar [Tue, 23 Jul 2013 17:30:13 +0000 (19:30 +0200)]
ROBOT_DEMO: remove DomainEvents
Martin Vajnar [Tue, 23 Jul 2013 14:56:05 +0000 (16:56 +0200)]
ANDROID: incorporate new domain events handling
Martin Vajnar [Tue, 23 Jul 2013 14:55:00 +0000 (16:55 +0200)]
JORTE: free() domain events
This fixes memory leak in jORTEDomainInitEvents() and removes unused code
from JOrte.java.
Martin Vajnar [Tue, 23 Jul 2013 10:06:37 +0000 (12:06 +0200)]
JORTE: fraction computation
Fix getDecimal() function.
Martin Vajnar [Tue, 23 Jul 2013 09:09:39 +0000 (11:09 +0200)]
JORTE: fix memory leak and add DomainEvents to DomainMgr
Memory leaks in jORTEDomainAppCreate() and jORTEDomainMgrCreate()
(domain events callback structure) are fixed. Domain events callbacks
are placed in a separate file. Their prototypes are placed in "jorte/
/jorte_protos_api.h". This way they could be used by DomainApp
and DomainMgr.
Native functions in both DomainApp.java and DomainMgr.java are now non-
static. This allows native domain destructor to free the memory allocated
to domain events callback structure.
It is now also possible to pass null for DomainEvents or DomainProp to
DomainApp and DomainMgr constructors.
The header file onLoad.h is removed and the findClass() prototype is placed
into "jorte/jorte_protos_api.h".
Martin Vajnar [Sun, 21 Jul 2013 15:56:48 +0000 (17:56 +0200)]
JORTE: add type casts
Martin Vajnar [Sun, 21 Jul 2013 12:45:50 +0000 (14:45 +0200)]
JORTE: remove unused variable and use TEST_STAGE for time