-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The following code leads to a segfault (the first time data are received)
m_dataReader->new DataReaderClass;
m_dataReader->useCallback();
m_dataReader->topic("/ros_topic");
while the following is ok:
m_dataReader->new DataReaderClass;
m_dataReader->topic("/ros_topic");
m_dataReader->useCallback();
Being DataReaderClass defined as:
class DataReaderClass: public yarp::os::Subscriber<ros_msg_type>
The issue could be related to the fact that topic() automatically creates a connection? (The connection is typically created later when using a standard buffered port with callback, instead).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels