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
husky wheel odom #192
Comments
Hi @narutojxl, You probably have in the parameters of Diff Drive controller set "open_loop" to true. This ignores the feedback from hardware and publishes odometry based on the commanded velocity. The other issue with simulation is caused by unsuitable friction parameter on the Wheels, see #191 for the adjustments. |
Hello @destogl, thanks for your kind reply. I don't find
|
@narutojxl I see you are using ROS(1). Nevermind then. |
Hello authors,
I'm using
noetic-devel
branch. I runroslaunch husky_gazebo husky_empty_world.launch
with the default config,laser_enabled = 0
,laser_secondary_enabled =0
,laser_3d_enabled =0
,realsense_enabled =0
. I don't modify anything except I addlibgazebo_ros_p3d.so
intohusky.urdf.xacro
to get fake localization pose. When i use a logitech joystick to drive husky in gazebo empty.world, i find/husky_velocity_controller/odom
topic'sx
andy
are very different from/ground_truth/state
topic'sx
andy
position.map
frame is the same withodom
frame,/husky_velocity_controller/odom
pose is inodom
frame by default.Then i compare
vx
andwz
of/cmd_vel
,/husky_velocity_controller/cmd_vel
,/husky_velocity_controller/odom
and/ground_truth/state
. I find/cmd_vel
,/husky_velocity_controller/cmd_vel
and/husky_velocity_controller/odom
are the same invx
andwz
respectively. In other word,/husky_velocity_controller/odom
vx
is the same with gazebo receivedvx
of/husky_velocity_controller/cmd_vel
,/husky_velocity_controller/odom
wz
is the same with gazebo receivedwz
of/husky_velocity_controller/cmd_vel
. Please see the following two pictures, the first one isvx
comparison chart, the second iswz
.My question is:
/husky_velocity_controller/odom
husky's wheel odom? If it is, why the velocityvx
andwz
is very different from the measured feedback velocity?wz≠0, vx=0
on the/cmd_vel
, robot in gazebo doesn't rotate in place, it does a weird go front - go back in the rotate motion, similar problem in #105 and #120. In the #PR191 , the author saysThe text was updated successfully, but these errors were encountered: