Are both of c++ and python necessary together
I've found that in many ROS packages, there two kinds files: c++ files and python files.
For example, here is the architecture of src
of the package actionlib
:
src/
├── actionlib
│ ├── action_client.py
│ ├── action_server.py
│ ├── exceptions.py
│ ├── goal_id_generator.py
│ ├── handle_tracker_deleter.py
│ ├── __init__.py
│ ├── server_goal_handle.py
│ ├── simple_action_client.py
│ ├── simple_action_server.py
│ └── status_tracker.py
├── connection_monitor.cpp
└── goal_id_generator.cpp
I'm asking if all of them are necessary? Or do they work together?
Saying that I delete all of python scripts of actionlib
, can I still compile the package actionlib
with cmake && make
and use this package as expected? Or can I delete all of c++ files of actionlib
and use its pythons scripts as expected?
Perhaps a good first question would be: why would you want to do this?