rtt_ros_integration icon indicating copy to clipboard operation
rtt_ros_integration copied to clipboard

createStream causes execution to stuck in a loop

Open 2u121o opened this issue 2 years ago • 0 comments

I'm integrating orocos with ros, basically i created a component that read data from some input ports and write on output ports that create streams, because i want to public this values on ros topics and then read those values in plotjuggler.

So I created this component without any problem and work perfectly. After that i created used another ssd configured in the same way as the previos ssd in which i build this component that publish data on ROS but on this new ssd when i call the first createStream() it stuck without any error as if it is in an infinite loop. The only thing that i notice different from the other ssd is that i got the following message

[2022-05-06 12:33:28] [connect] WebSocket Connection 192.168.2.13:8081 v-2 "WebSocket++/0.7.0" /socket.io/?EIO=4&transport=websocket&t=1651833208 101

to create the stream I'm using, in the c++ code the following code

port.setName(<port_name>);
port.doc(<doc>);
port.createStream(rtt_roscomm::topic(<topic_name>));

i also tried to create the stream in the ops file, but i get exactly the same result, when it reach that point it stuck.

I repeat again that i have a working version of this component on a similar ssd, so this means that the code inside the component is should be correct as well as the ops file.

I'm on ubuntu 18.04.06 LTS, I'm using ROS melodic.

Is 1 week that I'm working on this issue without success, so i tried a lot of different things but at the end when i create a stream it stuck.

Ros is working because if i create a topic and i publish something from terminal or a create a simple ros package i can send and receive data, also orocos is working because i have different component running without problem.

I know that with so few information is difficult to solve the problem but why when i create a topic, with createStream, i get stuck in this loop?

There is any known case in which it is possible to remain stacked in this way during the creation of a topic in ros?

2u121o avatar May 06 '22 11:05 2u121o