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

Races in GUI thread during joint state update #4

Closed
disRecord opened this issue Oct 19, 2017 · 4 comments
Closed

Races in GUI thread during joint state update #4

disRecord opened this issue Oct 19, 2017 · 4 comments

Comments

@disRecord
Copy link

This problem occurs when GUI is running and source_list topic is used to update joint state. Pose is updated only partially for long JointState messages.

source_cb() callback emits sliderUpdateTrigger signal. But it seems during sliders' values update in update_sliders() somehow onValueChange() is called. So pose is updated only partially: half of the pose comes from received source_list message and other half comes from the old sliders' state.

Attached patch adds a lock and solves this problem.
joint_state_publisher.patch.txt

@clalancette
Copy link
Collaborator

Would you mind opening a pull request with that change? It makes it easier for us to review and track it. Thanks.

@disRecord
Copy link
Author

I've created pull request: #5 .

@v4hn
Copy link
Contributor

v4hn commented May 25, 2018

This bug is a huge pain for users of MoveIt!'s demo mode,
where the joint_state_publisher is used to simulate the robot driver.

If users enable the GUI via a parameter in the demo.launch file, it looks like everything is running correctly.
But when they execute planned trajectories only some of the planned joints, if any, actually move.
All others remain at their current positions, resulting in broken and very unintuitive trajectories.

A number of hours of debugging by multiple users went into this already,
it would be great to see this fixed one way or another.

@sloretz
Copy link
Contributor

sloretz commented Oct 15, 2019

Was fixed by #11 🎉, closing

@sloretz sloretz closed this as completed Oct 15, 2019
v4hn added a commit to TAMS-Group/tams_pr2 that referenced this issue Dec 16, 2021
With the GUI enabled, trajectory execution through moveit can fail.
ros/joint_state_publisher#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants