Issue with custom action server message

I am working on the last bit of section 9 which is creating my own custom action server message.
I’ve followed the instructions and here is my action server message(I am working on the quiz as well so I use actions_quiz as my package name)

And edited my CMakeLists.txt and package.xml

And I run catkin_make and source devel/setup.bash
Everything seems fine.
When I try to find this custom message with command

rosmsg list | grep action_custom

I couldn’t find anything. So what am I doing wrong here?

Hi Joseph, try adding actionlib_msgs here:

catkin_package(
  CATKIN_DEPENDS
  rospy
  std_msgs
  actionlib_msgs
)

then, run catkin_make, and you can check the msg files of your action file by going to

ls devel/share/actions_quiz/msg/

let me know if that works for you.

Rodrigo

Thanks a lot for the reply! I tried it and notice in devel/share/ I don’t even have actions_quiz file.
Seems catkin_make did not run properly? I am not 100% sure how to handle the situation.
My best guess is should I try to execute catkin_clean wipe everything and redo it?

Yes, delete your build and devel folders and run catkin_make again:

cd catkin_ws
rm -rf build/
rm -rf devel/

catkin_make

Rodrigo

Rodrigo,

Thanks a lot for the reply again. I am running into another issue while catkin_make.

My understanding is that something is wrong with my CMakelists.txt/package.xml
I included std_msgs, actionlib_msgs and rospy.
What else I should put in

generate_messages(
DEPENDENCIES
   std_msgs 
   actionlib_msgs
   rospy
   actions_quiz)

?

Hi Joseph, did you source your ROS environment? This is done by running the command
source /opt/ros/kinetic/setup.bash
If it still gives you problems, then maybe you also have to source your workspace with
source devel/setup.bash

Rodrigo