Help with axis

On Thursday 29 July 2010 09:27:32 Pierre ANDRE wrote:
> Hi,
>
> I am trying to update to 2.0 the hardware/axis/ component and I have a
> problem to change "Event<void(std::string)> event;" in AnalogDrive.hpp
> Line 207.
>
> In the Renaming table, it is said that
> RTT::Event change in RTT::internal::Signal
>
> In this page there is other thing:
>
> http://www.orocos.org/wiki/rtt/rtt-20/upgrading-rtt-1x-20/replacing-events
>
> One method use this event line 145 to 153
>
> /**
> * Limit the velocity of the drive.
> */
> void limit(double lower, double higher, const
> Event<void(std::string)>& ev) {
> lowvel = lower;
> highvel = higher;
> event = ev;
> }
>
> But nowere they use
>
> events()->addEvent
>
> is there normal?
> What does I need to change?

As far as I know Events are replaced by ports, so you need to create a port
that you can add as follows:

ports()->addEventPort

Ruben

>
> --
> Pierre ANDRE
>
> 06 76 59 34 92
> pierre [..] ...<mailto:pierre [..] ...>
>
> Le Belvédère
> 46700 Puy l'Évêque
>
> Appt 2 Bat D
> 50 Avenue de Lespinet
> 31400 Toulouse