ERROR
code
Msgs
package
action msgs folder
Hi @AshishVarma ,
Try to recompile your package from scratch after clearing the build folders. That should fix this.
cd ~/catkin_ws
rm -rf ./build ./devel
catkin_make && source devel/setup.bash
rosrun actions_quiz my_script.py
Compile the package first and then do rosrun
, otherwise the custom messages won’t be detected.
Regards,
Girish
should i also need to show my cmakelists.txt and package.xml ?
Hi @AshishVarma ,
I think you are missing the shebang on the very first line of your python script.
#! /usr/bin/env python
Try adding this line. Then recompile, source and do rosrun ...
. I believe it should work now.
Regards,
Girish
Sorry its a screenshot mistake and thats not the actual problem, i follwed this video [ROS Q&A] 189 - How to create a custom message for ROS Actions - YouTube and realised that i didnt add genarate msgs in CMAKELISTS.txt and it solved my issue.
Thanks for the response.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.