ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You're setting the server node name as

"ros::init(argc, argv, "go_drive");"
                       ^

which is the same as the client's action name (see \param name definition)

SimpleActionClient::SimpleActionClient() : 
  take_video_client_("take_video", true),
                     ^
  go_drive_client_("go_drive", true)
                   ^

so this works while rosrunning, but you are renaming the nodes in the launch file:

<node pkg="action_test" type="GoDriveActionServer" name="GoDriveActionServer" launch-prefix="xterm -e" />
                                                   ^
<node pkg="action_test" type="TakeVideoActionServer" name="TakeVideoActionServer" launch-prefix="xterm -e" /> 
                                                     ^

so this doesn't work while roslaunching.