Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting the action-server during goal execution makes CPP-action-client crash in windows, ROS1 Melodic #175

Open
prabeenkumar122 opened this issue Nov 12, 2020 · 1 comment

Comments

@prabeenkumar122
Copy link

prabeenkumar122 commented Nov 12, 2020

Restarting the action-server during goal execution(before result is sent back to action client) makes CPP-action-client crash in windows.

This issue is not seen in linux.

Issue is seen in ROS1 Melodic

Steps:

  1. started an action server from command : " rosrun actionlib_tutorials averaging_server " in command window

  2. created an simple-action-client using cpp actionlib api and sent the goal
    aClient = std::make_shared<actionlib::SimpleActionClient<actionlib_tutorials::AveragingAction>>(*theNode,"averaging_server ",true);

  3. sent an default goal
    aClient->sendGoal(*goal,boost::bind(&ROSActClientClass::onResultReceivedCallback,this,_1,_2),
    boost::bind(&ROSActClientClass::onGoalActiveCallback, this),
    boost::bind(&ROSActClientClass::onFeedbackReceivedCallback, this,_1));

  4. When the goal is active, before getting the result, stop the action server using ctr+c in the command window.

  5. Restart the action-server by rerunning the same command(" rosrun actionlib_tutorials averaging_server ")

  6. Now the node which contains the action client has crashed and stopped.

@prabeenkumar122 prabeenkumar122 changed the title Restarting the action-server during goal execution makes CPP-action-client crash in windows Restarting the action-server during goal execution makes CPP-action-client crash in windows, ROS1 Melodic Nov 12, 2020
@ThomassTon
Copy link

I got the same trouble. Did you have any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants