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

Ros2 Action Client does not let me send any more data to rosbridge after sending goal #716

Open
rjbrockbundy opened this issue Apr 18, 2024 · 0 comments
Labels

Comments

@rjbrockbundy
Copy link

Description
ROS2 action calls from the latest develop branch are freezing other Topic or Service publish calls after the Action Goal is sent to the robot. This occurs until a page refresh when I regain the ability to publish while the action is ongoing.

  • Library Version: Latest Development Branch
  • ROS Version: Humble
  • Platform / OS: React App / Rosbridge / Linux

Steps To Reproduce

const handleStartRoute = () => {
        if (!ros) return;
        console.log('Route start')

        var startRouteAction = new Action({
            ros: ros,
            name: '<action server>',
            actionType: '<action type>'
        });

        var goal = { input: '<some input>' }

        var goal_id = startRouteAction.sendGoal(goal,
            function (result) {
                console.log('Result: ' + startRouteAction.name + ': ' + result);
            },
            function (feedback) {
                console.log('Feedback: ' + feedback);
            },
            function (failed) {
                console.log('Failed: ' + failed);
            }
        );
    }

The Action works fine when sending it from a terminal. And the Robot is receiving the Action Goal when this function is called.

Expected Behavior
I expect the Goal to be sent to the server and continue with the action goal while the user can still interact with the robot (i.e. publish topics / send services)

Actual Behavior
After sening the goal the robot can still receive topic data, however I can no longer publish to the robot whether that be ROS topics or services. The page requires a refresh when an action is sent in order to regain publishing.

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

No branches or pull requests

1 participant