ROS Action translator node
Hello everybody,
For a personal project, I want to create a ROS action translator node that will works as a middle person :
- The node will receive a message, let's say "Hello"
- It will change that to "Good morning"
- Send back the new message to the node that requested the action.
I want to do that for a predefined list of words that I have with it's translation, something like this but in an XML file probably :
Hello ----> Good morning
Bye ----> See you
robot_pr2 -----> robot_pr2_x5
Do you have any idea how I can perform that in a good way ? or I must do a string comparison for each word received with all my list till I found the right one ?
Thank you
Anyone please ?