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

offset in teleoperation #63

Open
nksas opened this issue Jul 6, 2022 · 1 comment
Open

offset in teleoperation #63

nksas opened this issue Jul 6, 2022 · 1 comment

Comments

@nksas
Copy link

nksas commented Jul 6, 2022

so, whenever i export a robot model and try using it with key_teleop , the key bindings are flipped by an offset of 90 degree.
forward key goes left , left goes back, etc
Is this issue common to all or it's just some minor mistak i am making while modelling the robot.

@nilutpolkashyap
Copy link

Hi, I am assuming you made a two-wheel robot. You need to make a minor change in the main XACRO file of your robot inside the urdf folder.

You would need to change the direction of the joint axis for revolute joints. By default, the axis is inverted for one of your joints. Just removed the "negative" sign from the tag inside the element.

Below is an example.

<joint name="right_joint" type="continuous">
  <origin xyz="-0.07 -0.115 0.05" rpy="0 0 0"/>
  <parent link="base_link"/>
  <child link="right_wheel_1"/>
  <axis xyz="0.0 -1.0 0.0"/>
</joint>

Removed the "-" from the element and make it <axis xyz="0.0 1.0 0.0"/>

Hope this helps.
Nilutpol Kashyap

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