[Bug 438] New: [Project]TimerComponent for time based events

For more infomation about this bug, visit
Summary: [Project]TimerComponent for time based events
Product: OCL
Version: 0.4.1
Platform: All
OS/Version: All
Status: NEW
Severity: project
Priority: P2
Component: Other
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] soetens [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Components can already synchronise on an event emitted by a component. There is
however no infrastructure in OCL (nor RTT) to arm timers and wait for them to
expire. A classical use case would be:
1. in a program script:

var int myTimerId = 0;
do Timer.wait( 0, 1.235 ); // command: wait for 1.235 seconds

// or:
var int someTimerId = 3;
do Timer.arm( someTimerId, 5.0); // method: arm and return
while ( Timer.isActive( someTimerId ) ) {
// do something for 5 seconds...

[Bug 438] [Project]TimerComponent for time based events

For more infomation about this bug, visit

Klaas Gadeyne <klaas [dot] gadeyne [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
CC| |klaas [dot] gadeyne [..] ...

--- Comment #3 from Klaas Gadeyne <klaas [dot] gadeyne [..] ...> 2007-08-23 10:35:39 ---
(In reply to comment #2)
> This patch adds the TimerComponent to trunk/ocl as specified in the initial bug
> report. Requires the latest trunk/rtt.

Shouldn't this be specified in the cmake logic (either on the level of the
timercomponent only, either on a global level)?
Now a user only notices at compile time (s)he cannot compile ocl-trunk using
the rtt-1.2 branch.

--
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

[Bug 438] [Project]TimerComponent for time based events

For more infomation about this bug, visit

Peter Soetens
<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

--- Comment #2 from Peter Soetens
<peter [dot] soetens [..] ...> 2007-08-07 17:27:22 ---
This patch adds the TimerComponent to trunk/ocl as specified in the initial bug
report. Requires the latest trunk/rtt.

$ svn ci timer/ CMakeLists.txt -m"Patch for bug #438: [Project]TimerComponent
for time based events
> This adds the TimerComponent to the Orocos Component Library, including a small test program."
Sending CMakeLists.txt
Adding timer
Adding timer/CMakeLists.txt
Adding timer/TimerComponent.cpp
Adding timer/TimerComponent.hpp
Adding timer/tests
Adding timer/tests/CMakeLists.txt
Adding timer/tests/main.cpp
Transmitting file data ......
Committed revision 28489.

--
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

[Bug 438] [Project]TimerComponent for time based events

For more infomation about this bug, visit

Peter Soetens
<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|NEW |ASSIGNED
Target Milestone|--- |0.6.0

--- Comment #1 from Peter Soetens
<peter [dot] soetens [..] ...> 2007-08-07 17:24:32 ---
A first patch on trunk/rtt has been applied which introduces the Timer class in
the RTT. This means this feature is RTT 1.4.x only.

$ svn ci -m"Patch for bug #438:[Project]TimerComponent for time based events.
Add Timer class, OS support (linux,lxrt,xenomai) and unit tests."
Sending rtt/config/check_depend.cmake
Sending rtt/src/CMakeLists.txt
Sending rtt/src/CoreRunnableInterface.cpp
Sending rtt/src/TimeService.cpp
Sending rtt/src/TimeService.hpp
Adding rtt/src/Timer.cpp
Adding rtt/src/Timer.hpp
Sending rtt/src/marsh/CMakeLists.txt
Sending rtt/src/os/RunnableInterface.cpp
Sending rtt/src/os/Semaphore.hpp
Sending rtt/src/os/SingleThread.cpp
Sending rtt/src/os/ecos/fosi.h
Sending rtt/src/os/fosi_interface.h
Sending rtt/src/os/gnulinux/fosi.c
Sending rtt/src/os/gnulinux/fosi.h
Sending rtt/src/os/lxrt/fosi.c
Sending rtt/src/os/lxrt/fosi.h
Sending rtt/src/os/xenomai/fosi.c
Sending rtt/src/os/xenomai/fosi.h
Sending rtt/tests/time_test.cpp
Sending rtt/tests/time_test.hpp
Transmitting file data .....................
Committed revision 28488.

--
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm