How to create custom action interface definition in ros2?
I want to create the following plan_aid.action file:
string planning_problem
---
string trajectory
---
string planning_status
What is the exact procedure to do it in ROS2 (Crystal) I followed the following approach:
- created a package named action_interface (action_interface, setup.py, package.xml)
- action_interface folder with __ init __.py(empty) and action(plan_aid.action) folders
- package.xml of action_client is added with <exec_depend>action_interface </exec_depend>
I am still getting the following error for the following code in action client node:
from aid.action_interface.action import plan_aid
Traceback (most recent call last):
File "/home/developer/ros2_ws/ros2/src/sm/state_machine/state_machine_node.py", line 8, in <module>
from aid.action_interface.action import plan_aid
ImportError: cannot import name 'plan_aid'