Robotics StackExchange | Archived questions

Vehicle moves in RVIZ but not in Gazebo? Using ros_control with the four_wheel_steering_controller

Hello!

I am trying to use the fourwheelsteeringcontroller from the roscontrollers package (which leverages the ros_control package).

Specifically I'm trying to launch this launch file: https://github.com/ros-controls/ros_controllers/blob/melodic-devel/four_wheel_steering_controller/test/launch/view_four_wheel_steering.launch

When I first launched it, I noticed that many of the joints in the model collapsed. After making sure inertia tags were correct, I added mass to small inertia links.

Now I can see the model in gazebo properly, but it still doesn't move. It DOES move in RVIZ when given controller input when I use odom for the fixed frame. I can drive it around like normal in RVIZ, but nothing changes in Gazebo.

I've made some changes to the code which I've committed to my own branch here: https://github.com/tlalexander/ros_controllers/commit/1809b0905696bb0f02e5930d634e0d2d45c1fdbd

One thing I had to do was add PID gains to a yaml file: https://github.com/tlalexander/ros_controllers/blob/melodic-devel/four_wheel_steering_controller/test/config/four_wheel_steering_controller_4ws_cmd.yaml

Ultimately though I still can't get it working. I'm really at a loss for how to begin debugging this after spending all day on it.

Can anyone direct me for how to determine why the Gazebo model doesn't drive? Are the wheels not being commanded to rotate properly? Am I missing gazebo tags in my URDF? Are my PID values being specified properly?

Other details:
OS: Debian Buster
ROS Version: Not sure? The debian repos don't include the ROS version in their name so I'm not sure how to tell.

Thank you!

Asked by tlalexander on 2019-05-22 21:10:14 UTC

Comments

Did you try commenting out line 6 and uncommenting line 3?

Asked by azeey on 2019-05-31 14:01:45 UTC

Answers