How to import custom action message

i have created a custom action message , it is in the action folder with name ‘RecordOdom.action’ in which i only have the result part

It is in the custom_action_msg package

How to import that in my python code

Hi @bhuratsidhu , taking a cue from the following…

In this case, the action server is using an action message definition called Fibonacci.action . That message has been created by ROS into its actionlib_tutorials package.
from actionlib_tutorials.msg import FibonacciFeedback, FibonacciResult, FibonacciAction

…you can import you action messages thus:

from custom_action_msg.msg import RecordOdomFeedback ... # add the rest :)
1 Like