Hi, I am quite new to ROS and Gazebo. I use ros force based plugin for my Mecanum robot instead of the planar move because your plugin does not override the physics engine. However, I have found a problem here.
When I spawn the robot, there are always offset of robot position in my map and also the yaw direction offset for 90 degrees. Hence, I have to edit the arguments for static transform node in order to solve this problem. Here are some parts of my launch file to call a single robot with the namespace.
<node pkg="tf" type="static_transform_publisher" name="odom_map_broadcaster" args="0 0 0 0 0 0 /map $(arg robot_name)/odom 10" />
Note that when I set to 0 0 0 0 0 0 the robot will offset in Rviz when compare to the Gazebo
So I have to change the offset here. But if I use the original planar move there is no problem.
When I move robot sideways in the y-axis, the odometry in Rviz does not change even though in gazebo it has change position already. For move straight and backward in X-axis, there is no problem.
Here is the part of my URDF file to call the plugin in
`
Hi, I am quite new to ROS and Gazebo. I use ros force based plugin for my Mecanum robot instead of the planar move because your plugin does not override the physics engine. However, I have found a problem here.
When I spawn the robot, there are always offset of robot position in my map and also the yaw direction offset for 90 degrees. Hence, I have to edit the arguments for static transform node in order to solve this problem. Here are some parts of my launch file to call a single robot with the namespace.
<node pkg="tf" type="static_transform_publisher" name="odom_map_broadcaster" args="0 0 0 0 0 0 /map $(arg robot_name)/odom 10" />
Note that when I set to 0 0 0 0 0 0 the robot will offset in Rviz when compare to the Gazebo So I have to change the offset here. But if I use the original planar move there is no problem.When I move robot sideways in the y-axis, the odometry in Rviz does not change even though in gazebo it has change position already. For move straight and backward in X-axis, there is no problem.
Here is the part of my URDF file to call the plugin in `
`