I want to read Data from an Orocos component but in an External Thread.
The Environment will have N number of components then I want to get all the
data on all the output port and read them out of Orocos in a c++
What I did is to create an Orocos component which is dynamically in the
configuration hook will create and an event port for each output port of
all the components which is running under the same deployer and make a
connection with them, then create an Attribute for each port and update the
attribute value with each port event.
Now I am trying to read this attributes in my c++ thread outside of Orocos.
can not make it dynamic to read like what I did in the component, since I
have to create an attribute with the same data type to be able to get the
Also I am not sure if it will be thread safe or not, but I saw a comment
saying read/write for attributes is not thread safe.
What is the most efficient here, should I read direct from the input ports
in my external thread? or there is another solution?