Closed David9696 closed 1 year ago
Please show me the result of rosparam get /vesc_hw_interface_node
in both versions.
Also do you know what the measured and actual speed values are? I would appreciate any relationship such as the measured value is greater than the actual speed.
I would update the rosparam once I have the access to my setup.
As a quick reply, this is what I have found:
Thanks.
Sorry, forgot to fix the conversion bug on vesc_hw_interface.cpp https://github.com/sbgisen/vesc/blob/fb520b663c0c5df1a03cc46ccebb9d08fce110c7/vesc_hw_interface/src/vesc_hw_interface.cpp#L307
should be
const double velocity_rpm = values->getVelocityERPM() / static_cast<double>(num_rotor_poles_ / 2);
@David9696
I opened PR #78 which should fix the velocity conversion bug. Let us know if this fixes your environment.
Hi @jsupratman13 ,
Yes, is working correctly now. Thanks for your great help.
Hi,
I have tested the latest velocity_control_sample.launch file. However, I realized that the computed velocity and real velocity do not matching.
Previously. I was using the vesc package version of [f0d983c].
(https://github.com/sbgisen/vesc/commit/f0d983c0ef787e3cb42fa917bcbfd7a7651f62a0) on Dec 14, 2022]
In this version, the computed velocity and real velocity are matching.
The following parameters are the same for both cases.
May I know what is the problem?
Thanks.