MTC Action Server (Rclpy) #622
matthias88
started this conversation in
General
Replies: 1 comment 5 replies
-
I'm not quite sure about the actual problem you are facing. Indeed, you cannot pass a rclcpp.Node to rclpy methods expecting an rclpy.Node. These are two different classes. However, you can write your server using rclpy.Node classes as usual. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to implement MTC in an rclpy action server e.g. Minimal Action Server. The idea would be, that the client sends a task request e.g. pose of an object and the server calculates the task, sends feedback during planning and eventually cancelling or executing the task. My naive approach was, that I create a MTC Node with different task methods and call them in the execution callback. Thereby the action server and task constructor are not blocking each other, I wanted to use a multithreaded executor. Due to the pybinding_tools, see #520 and #563, I am not able to inherit/initialize as usual in rclpy and I am also not able to extend the MTC Node with e.g. pub/sub/timer or use it within multithreaded executor. Can anybody help? Attached you can find some pseudocode:
Beta Was this translation helpful? Give feedback.
All reactions