linear axis values are in millimeters instead of meters #354
-
I have a GP180 arm mounted on a linear rail which serves as a base axis, both connected to a DX200 controller. When I run MotoROS2 the joint state for the linear rail is reported in units of millimeters rather than in units of meters like I'd expect. It looks like the I think that this conversion is something I can configure somewhere on the controller, but I haven't found what menu contains this setting yet. I also want to make sure I correctly understand how this data gets retrieved by MotoROS2. Am I on the right track with all this so far? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I've converted this to a discussion in the Troubleshooting category as MotoROS2 should already be reporting If it doesn't, something is wrong. @schornakj: could you provide a couple of sample Edit: and I also expect @ted-miller will ask for a |
Beta Was this translation helpful? Give feedback.
The way that this controller is configured will not work correctly for the calculations in MotoROS2.
Since this is configured as a rotational axis, it will use the
pulseToRad
rather thanpulseToMeter
.motoros2/src/CtrlGroup.c
Line 531 in 8feb9c6
So, the units are actually in radians.
This would need to be reconfigured as a base axis (
B1
) asRECT-X
.When configuring this, it will ask for the gearing ratios between your motor and the track.
I suggest contacting techsupport@motoman.com (in the US) for the proper procedure to avoid any loss of data.