# How to import custom action message

**URL:** <https://get-help.theconstruct.ai/t/how-to-import-custom-action-message/3961>\
**Category:** ROS Beginners Exam\
**Created:** [June 8, 2020, 12:54pm UTC](https://get-help.theconstruct.ai/t/how-to-import-custom-action-message/3961 "2020-06-08T12:54:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhuratsidhu](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bhuratsidhu/32/10_2.png) [@bhuratsidhu](https://get-help.theconstruct.ai/u/bhuratsidhu)\
**Post date:** [June 8, 2020, 12:54pm UTC](https://get-help.theconstruct.ai/t/how-to-import-custom-action-message/3961/1 "2020-06-08T12:54:48Z")

</div>

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

@bayodesegun  
How to import that in my python code

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [June 8, 2020, 1:48pm UTC](https://get-help.theconstruct.ai/t/how-to-import-custom-action-message/3961/2 "2020-06-08T13:48:25Z")

</div>

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:

```auto
from custom_action_msg.msg import RecordOdomFeedback ... # add the rest :)

```
