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

/joint_states return error data when robot collision with object in gazebo #313

Closed
jacknlliu opened this issue Mar 5, 2018 · 4 comments
Closed

Comments

@jacknlliu
Copy link

jacknlliu commented Mar 5, 2018

After robot and an object have a collision, and if the joint trajectory controller still sends joint positions to the robot, the joint_states will return the wrong data, even if the gazebo world and robot were reset by service call, the joint_states still return wrong data, and the joint_trajectory_controller/state also return wrong data!

And /joint_states can't return normal data from the current model state, even if the robot has been moved to another position!

/joint_states:

header: 
  seq: 14205682
  stamp: 
    secs: 71085
    nsecs: 101000000
  frame_id: ''
name: ['elbow_joint', 'shoulder_lift_joint', 'shoulder_pan_joint', 'wrist_1_joint', 'wrist_2_joint', 'wrist_3_joint']
position: [-8.51584976541768, -22393.868370150947, -23210.903847882473, -23059.99195414233, 7.4320796024417355, 9.18637489720941]
velocity: [0.00021875832846863282, 0.00585327683488699, 0.003416905486500389, -0.0001427822974524656, 6.232113829809081e-05, 1.6280227906504893e-06]
effort: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
@bmagyar
Copy link
Member

bmagyar commented Mar 5, 2018

This is to be expected, since the GazeboRosControl is not reset by these changes:
https://github.com/ros-simulation/gazebo_ros_pkgs/tree/kinetic-devel/gazebo_ros_control

@jacknlliu
Copy link
Author

jacknlliu commented Mar 5, 2018

@bmagyar thanks for your quick reply. It means that the joint_state_controller and joint_trajectory_controller can't receive the real joint state from gazebo. Is this expected? And how could we reset this or provide real /joint_states after reset gazebo world?

In addition, the joint positions from /joint_states are very large and exceeds the joint limit, it seems something wrong?
Why didn't /joint_states update its value from the current gazebo state after reset?

Thanks in advance!

@jacknlliu
Copy link
Author

/joint_states can't return normal data from the current model state, even if the robot has been moved to another position! /joint_states is broken?

@bmagyar
Copy link
Member

bmagyar commented Mar 23, 2018

I'm sorry but you are submitting a whole lot of issues without a clear description of each. They may all boil down to the same underlying issue that's happening. Try to identify what's really wrong first.

@bmagyar bmagyar closed this as completed Mar 23, 2018
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