Is it posible to access ROS data directly from a susbcriber class using a NON-ROS python class?

asked 2017-07-18 03:45:21 -0500

jimenisimo gravatar image

Is it posible to access ROS data directly from a susbcriber class using a NON-ROS python class, this means creating a class with get methods in the ROS class and trying to call that method class from a normal python class. I have tried that and I can access the methods but the values come with cero

edit retag flag offensive close merge delete

Comments

Do you mean you want to have a ROS subscriber inside a class that was not fully developed for ROS? Do you a have some code as example?

marcoarruda gravatar image marcoarruda  ( 2017-07-18 07:54:41 -0500 )edit

Yes I want to run a subscriber and then access the values that the subscriber is reading... from a class that is not developed for ROS (by calling methods). this can easily be done by saving the data in a data base after reading from the subscriber, but this wouldn't be livestream.

jimenisimo gravatar image jimenisimo  ( 2017-07-24 17:25:42 -0500 )edit

You might need to implement a bridge between these two classes using something like zeromq or http requests. If the two classes are initialized within same python process, then I think it might be possible to do some python magic to make a borg style Classes and access data.

naveedhd gravatar image naveedhd  ( 2017-08-02 10:28:41 -0500 )edit