I start my action server like this now:
self._as = actionlib.SimpleActionServer(
“action_custom_msg_as”, CustomActionMsgAction, self.goal_callback, False)
So it should use CustomActionMsgAction as the goal now, but before I migrated, I was using actionlib/TestActionGoal. But even after I cleaned the build and devel dirs and restarted the action server, I still get:
$ rostopic info /action_custom_msg_as/goal
Type: actionlib/TestActionGoalPublishers: NoneSubscribers:
* /action_custom_msg_as_server (http://1_xterm:46411/)
So somehow the goal type is being cached or something, so it ignores my python script and uses the previous message type, even after I kill the server and do a full clean.
I can get around the problem by simply renaming the service to /action_custom_msg_as2, but I need this to be graded by the automatic grader, so I’m not allowed to change the name.
$ rostopic info /action_custom_msg_as2/goal
Type: actions_quiz/CustomActionMsgActionGoalPublishers: NoneSubscribers:
* /action_custom_msg_as_server2 (http://1_xterm:45589/)
How can I clean this cache, restart roscore, or whatever that I should do?