-
Hello, I am new to ROS/ROS2 and have bought a create 3, to learn it. To control the create3, I need a lot of topic-/action-/service-clients. As far as I have seen now, I have two possibilities:
What ist the better way, or have I something totally misunderstood? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There isn't a definitive answer to your question, however I can give you some ideas to help you take the decision depending on your specific use-cases. ROS nodes should be independent computational entities in your system that perform a certain task.
This will inevitably result in duplicating some ROS entities: there will be multiple ROS nodes subscribing to the same topic for example or having the same client. The main purpose is modularity. The extreme examples that you made (1 node for everything vs 1 node for each service/action/topic) are most of the times both wrong. ROS communication entities (topics, services, actions) entirely define the relations between different nodes. Besides these considerations, there are also many more advanced topics. I hope that this gives you a general idea of the topic. |
Beta Was this translation helpful? Give feedback.
There isn't a definitive answer to your question, however I can give you some ideas to help you take the decision depending on your specific use-cases.
ROS nodes should be independent computational entities in your system that perform a certain task.
ROS nodes can usually be fully characterized in terms of their input and output ros connections.
Common examples of ROS nodes in mobile Robotics may be the following: