A string goal with actionlib
I'm just starting out with ROS actions. The example uses the goal type uint32
, but I wanted to use a std_msgs::String
. This is my action file:
# Define the goal
string sequence_name # Name the sequence to run, e.g. "turn handle clockwise"
---
# Define the result (typically an incremental result, but just boolean in this case)
bool in_progress
---
# Define a feedback message
bool success
Although I stated "string" for the goal, it looks like the goal message compiles as an unsigned int
type. Passing an int
argument like this compiles successfully:
temoto::PreplannedSequenceGoal goal;
goal.sequence_name = 1;
preplanned_sequence_client_.waitForServer();
preplanned_sequence_client_.sendGoal(goal);
Whereas passing a std_msgs::String does not compile (type mismatch).
So, in short, can I use datatypes other than uint32
and float32
for the Action message components?
Actually, here's the autogenerated msg file. It is a uint32, not a string, so I guess uint32 is the only option.