ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Questions about API

asked 2016-11-23 00:52:04 -0600

shawnysh gravatar image

Link to ros API

Q1: Why does API split into 3 parts, ROS, C++, Python respectively?

Q2: Why some of them are identical in the same row, while others different?

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-23 02:21:32 -0600

mgruhler gravatar image

Actually, you basically copied the answer in here as well :-)

ROS: functionality available via ROS topics and services

C++: functionality available in C++ libraries

Python: functionality available in Python modules/packages

ROS has client libraries, roscpp and rospy that allow you to use ROS functionalities in C++ and Python code, respectively.

So, you have a C++ API), to e.g. use Publishers and Subscribers, as well as a Python API. Those two are obviously different. From the outside, a topic looks, however, the same, wether it comes from a python or a C++ node. You can manipulate this e.g. using the topic_tools package, which are just ROS nodes written in either C++ or python.

However, this is only a very rough overview, don't get stuck too much on this list.

edit flag offensive delete link more


I thought those 3 lines roughly are my answer, yet I confused, so I post it to look for a clear explanation.

Thanks for your patient and clear reply, it helps!

shawnysh gravatar image shawnysh  ( 2016-11-23 03:40:02 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-11-23 00:52:04 -0600

Seen: 73 times

Last updated: Nov 23 '16