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

The small car in gazebo idled , but /cmd_vel had receive msg.

asked 2020-09-01 07:28:50 -0500

Tonnwu gravatar image

image description

image description

image description

The tires are rotating, but the small car don't move.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-01 11:46:42 -0500

Weasfas gravatar image

Hi @Tonnwu,

I will just refer to my answer here since it seems you have the same problem.

You may want to check and tune the Gazebo contacts of the robot wheels. The wheel contacts parameters need to be properly adjusted for Gazebo to produce consistent contact and friction values to allow the robot to be moved by the simulated forces.

The most important friction factors are mu1 and mu2 that are usually between [0,1], and then Kp and Kd that increase the stability of the contacts/simulation.

With those changes you will be able to see the robot moving.

Hope that helps.

Regards.

edit flag offensive delete link more

Comments

Hi @Weasfas, Thanks your reply, I checked my srf file , the fraction is 0.8 . Then i 'run rostopic pub -r 10 /cmd_vel geometry_msgs/Twist '{linear: {x: 0.3, y: 0, z: 0}, angular: {x: 0, y: 0, z: -1}}' in shell, the car will move. Then i commit the ode_config in main code ,all are right.

Tonnwu gravatar image Tonnwu  ( 2020-09-02 08:54:51 -0500 )edit

@Tonnwu, glad to help. If you do not mind can you check the answer as correct for other forum users? Thanks.

Weasfas gravatar image Weasfas  ( 2020-09-02 10:45:11 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-01 07:28:50 -0500

Seen: 176 times

Last updated: Sep 01 '20