description data ports

Hello,

I have the following problem. When I fill in a description for a specific data port into a file under components, I don't see this description in my task context. In task objects I see : No description set for this port, whereas I should expect the description that I have filled in the components. What can be the cause of this problem ?

description data ports

On Thursday 14 August 2008 10:26:54 stsp wrote:
> Hello,
>
> I have the following problem. When I fill in a description for a specific
> data port into a file under components, I don't see this description in my
> task context. In task objects I see : No description set for this port,
> whereas I should expect the description that I have filled in the
> components. What can be the cause of this problem ?

It's a bug in DataFlowInterface.cpp....fixing it.

Peter

description data ports

On Thursday 14 August 2008 10:26:54 stsp wrote:
> Hello,
>
> I have the following problem. When I fill in a description for a specific
> data port into a file under components, I don't see this description in my
> task context. In task objects I see : No description set for this port,
> whereas I should expect the description that I have filled in the
> components. What can be the cause of this problem ?

Can you show some code ?

Peter

Resolver::Resolver(std::stri

Resolver::Resolver(std::string name)
: TaskContext(name,PreOperational),
_OldState(), // Position/Speed
_AxisState(),
AxisListener("AxisStatePort"),
errorCorrection("ErrorCorrection", 0.0),
encoderPosition("EncoderPosition", 0.0),
emulatorPosition("EmulatorPosition", 0.0),
counter("Counter", 0),

// some other code

this->ports()->addPort( &AxisListener , "Reading axis position and velocity.");
this->ports()->addPort( &errorCorrection, "error correction" );
this->ports()->addPort( &encoderPosition,"encoder position" );
this->ports()->addPort( &emulatorPosition, "emulator position" );
this->ports()->addPort( &counter,"counter" );

For all these ports I see No description set for this port

Resolver::Resolver(std::stri

On Thursday 14 August 2008 11:01:42 stsp wrote:
> Resolver::Resolver(std::string name)
>
> : TaskContext(name,PreOperational),
>
> _OldState(), // Position/Speed
> _AxisState(),
> AxisListener("AxisStatePort"),
> errorCorrection("ErrorCorrection", 0.0),
> encoderPosition("EncoderPosition", 0.0),
> emulatorPosition("EmulatorPosition", 0.0),
> counter("Counter", 0),
>
> // some other code
>
> this->ports()->addPort( &AxisListener , "Reading axis position and
> velocity."); this->ports()->addPort( &errorCorrection, "error correction"
> ); this->ports()->addPort( &encoderPosition,"encoder position" );
> this->ports()->addPort( &emulatorPosition, "emulator position" );
> this->ports()->addPort( &counter,"counter" );
>
> For all these ports I see No description set for this port

See https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=580 for the patch.

Peter