Gazebo | Ignition | Community
Ask Your Question
0

How I can access joints values like angle_0?

asked 2021-02-24 15:41:09 -0500

Hi, how I can access the angle_0 value from a joint? I want to simulate an encoder and I need that value to register the wheel rotation. I will attach a photo below.

Photo: https://imgur.com/a/xMkcRq2

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-02-26 21:27:13 -0500

One option is to write a plugin, probably a model plugin, that uses the model to get the joint, and then call Position/GetPosition

Another is to use the gazebo transport topics which already publish joint information

Yet another, if you're using ROS, is to look at ros topic which publish joint information

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-02-24 15:41:09 -0500

Seen: 10 times

Last updated: Feb 26