ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

What are the JointStateHandle units?

asked 2019-07-15 04:48:40 -0500

alex_ gravatar image

Hi, I'm using ros_control c++ interface and JointStateHandle to update the motor feedback values. My question is about the units used in the parameters of the following line:

hardware_interface::JointStateHandle state_handle_1(right_joint, &pos_[0], &vel_[0], &eff_[0]);

I suppose that vel_ has the unit [rad/s]. But what unit does pos_ have? Is it [m] or [rad]?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-07-15 05:34:29 -0500

This message type can describe both linear and rotary joints, so the units used will depend on the type of joint.

If it's a rotary joint the units are radians, radians per second, and Netwton metres.

If it's a linear joint the units are metres, metres per second, and Netwtons.

Hope this helps.

edit flag offensive delete link more

Comments

1

Yes it helps. I tested it with my rotatory joint and it is rad/s, rad and Nm.

alex_ gravatar image alex_  ( 2019-07-15 09:55:11 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-07-15 04:48:40 -0500

Seen: 226 times

Last updated: Jul 15 '19