[Discourse.ros.org] [Next Generation ROS] ROS 2 Graph

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS 2 Graph

Mn Nikpour via ros-users


Where can I find the imlementation of the Graph API in ros 2 ? Is it in the DDS layers or rclcpp layers ?





---
[Visit Topic](https://discourse.ros.org/t/ros-2-graph/3434/1) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS 2 Graph

Mn Nikpour via ros-users


We have some ROS graph information available through our C++ and Python API's:

- http://docs.ros2.org/ardent/api/rclcpp/index.html (search for "introspecting the ROS graph")
- https://github.com/ros2/rclpy/blob/5b219126664ee4bed352aa9ebd15e92d93d0f69c/rclpy/rclpy/node.py#L290-L297 (sorry no docs for these yet)





---
[Visit Topic](https://discourse.ros.org/t/ros-2-graph/3434/2) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS 2 Graph

Mn Nikpour via ros-users
In reply to this post by Mn Nikpour via ros-users


Thanks for the link. I have some doubt about this Graph API. Does it maintain any kind of Graph Data strucutre which stores all the ros 2 nodes created in the memory ? Can I obtain information regarding nodes created using these ?





---
[Visit Topic](https://discourse.ros.org/t/ros-2-graph/3434/3) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|

[Discourse.ros.org] [Next Generation ROS] ROS 2 Graph

Mn Nikpour via ros-users
In reply to this post by Mn Nikpour via ros-users


You can get the names of the nodes on the system with this method:

http://docs.ros2.org/ardent/api/rcl/graph_8h.html#a5203dab7ba44e3d4b6005270c674e1ec

That is part of our generic C api, unfortunately we don't have that exposed in our C++ API yet, but we will in the future.

As for an "object-oriented" data structure with nodes and all of their properties, we don't have that yet either, though there's nothing preventing us from doing that. We haven't exchanged a lot of information about nodes yet, other than what we can collect from DDS already, because we've still got some design work to do on ensuring node name uniqueness and that will impact how we communicate other details about nodes across the graph.





---
[Visit Topic](https://discourse.ros.org/t/ros-2-graph/3434/4) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>