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

Small delay between control of each channel #18

Open
vitorboschi opened this issue May 10, 2017 · 0 comments
Open

Small delay between control of each channel #18

vitorboschi opened this issue May 10, 2017 · 0 comments

Comments

@vitorboschi
Copy link

I've created a ros_control module that publishes velocity commands for two wheels modeled as joints, and launched a diff_drive controller. This setup works, but when I send a twist message asking the robot to go forward, one of the wheels starts rotating before the other, creating a small but noticeable change in robot's orientation. Is there a way to synchronize the command between the channels?
The relevant code that publishes the commands in my side is:

  for (unsigned int i=0;i<num_joints_;i++) {
    roboteq_msgs::Command c;
    c.mode = 0;
    c.setpoint = joint_velocity_command_[i] * ((i==0) ? -1 : 1); //left wheel control must be inverted
    motor_controller_[i].publish(c);
  }
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

1 participant