“Fügen Sie Servicedateien in Setup.py ROS2 hinzu” Code-Antworten

Fügen Sie Servicedateien in Setup.py ROS2 hinzu

As I have researched you just can't with python. In year 2022.
If you visit https://docs.ros.org/en/foxy/Tutorials/Writing-A-Simple-Py-Service-And-Client.html

You will find that the tutorial even paste .srv file into example_interfaces package

Which is using cmake (C++)
So you actually need to create other C++ package.And name something like package_name_interfaces.
And add srv file etc.,
Which will lead you to here https://docs.ros.org/en/foxy/Tutorials/Custom-ROS2-Interfaces.html

I really hate official ROS example.
VeryHardBit

Fügen Sie Servicedateien in Setup.py ROS2 hinzu

As I have researched you just can't with python. In year 2022.
If you visit https://docs.ros.org/en/foxy/Tutorials/Writing-A-Simple-Py-Service-And-Client.html

You will find that the tutorial even paste .srv file into example_interfaces package

Which is using cmake (C++)
So you actually need to create other C++ package.And name something like package_name_interfaces.
And add srv file etc.,
Which will lead you to here https://docs.ros.org/en/foxy/Tutorials/Custom-ROS2-Interfaces.html

I really hate official ROS example.
VeryHardBit

Fügen Sie Servicedateien in Setup.py ROS2 hinzu

As I have researched you just can't with python. In year 2022.
If you visit https://docs.ros.org/en/foxy/Tutorials/Writing-A-Simple-Py-Service-And-Client.html

You will find that the tutorial even paste .srv file into example_interfaces package

Which is using cmake (C++)
So you actually need to create other C++ package.And name something like package_name_interfaces.
And add srv file etc.,
VeryHardBit

Fügen Sie Servicedateien in Setup.py ROS2 hinzu

As I have researched you just can't with python. In year 2022.
If you visit https://docs.ros.org/en/foxy/Tutorials/Writing-A-Simple-Py-Service-And-Client.html

You will find that the tutorial even paste .srv file into example_interfaces package

Which is using cmake (C++)
So you actually need to create other C++ package.And name something like package_name_interfaces.
And add srv file etc.,
Which will lead you to here https://docs.ros.org/en/foxy/Tutorials/Custom-ROS2-Interfaces.html

I really hate official ROS example.
VeryHardBit

Ähnliche Antworten wie “Fügen Sie Servicedateien in Setup.py ROS2 hinzu”

Fragen ähnlich wie “Fügen Sie Servicedateien in Setup.py ROS2 hinzu”

Weitere verwandte Antworten zu “Fügen Sie Servicedateien in Setup.py ROS2 hinzu” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen