When I try to visualize the robot moving from gazebo in rviz, I add a transform and try and set the global fixed frame to odom but it does not show up. My only options are base_footprint, base_link, caster_wheel, and chassis. In addition to odom missing, I am also missing both wheels in the drop down.
BUT if I have rviz open prior to launching gazebo odom shows up.
Any thoughts on why the order of launching rviz then gazebo seems to matter?
I have another issue. Everything works fine except the last one bit. When i try to launch gazebo with the obstacles, they just don’t show up in the simulation. Do i need to download/create a my.world file first or is it just a bug?
hi, i’m trying to add another pair of wheel instead of caster wheel, and the rviz model work just fine. however in gazebo the second pair doesn’t show up. Anyone knows why so?
the second part of the question is, if i want the new pair just to “follow” the vehicle, what should i change in gazebo_control file?
Yeah you will need to create your own world file (which I think I cover in the video? I haven’t got time to check now). Or you could download one like this.
Hmm, if the other pair does not turn (e.g. ackermann steering) then you will encounter some issues due to friction but it should still kind of work. Are you thinking these other wheels will be driven or free-spinning?
Make sure you have unique names for all your joints and links and they are located in the correct spot (I suppose you say it is fine in RViz). They don’t show up in the model tree on the left side of Gazebo?
no the wheels don’t turn. and though they’ll be driven afterwards for simplification i want to simulate them as free-spinning. it’s actually thought as kid of a truck to the main robot.
That’s correct, they don’t show up in the model tree only in gazebo. Here are the two cases of the parts 2&3:
I can launch rsp launch file with joint_state_publisher_gui and everything works correctly in rviz
If i launch sim file, then the second pair of wheel doesn’t show up in gazebo, though in terminal all the links are started. If i start the rviz in that case the whole “truck”-part is white unless i start the joint_state_publisher_gui. After that it is visualized correctly in rviz (but still not in gazebo)
Make sure that everything is spelled correctly. It’s bit of a pain in the arse to go through everything but I had a ‘no transform from wheel link to odom’ error and found out that I had put in <publish_wheel_transform> instead of <publish_wheel_tf>. I have made a few silly mistakes like that so definitely worth going over all the code and make sure that everything is correct as they’re easy mistakes to make.
hello i downloaded the repository and i’m facing similar issues, i’m unable to move the robot at all through teleop_twist, i’m using ros2 foxy on ubuntu 20.04 LTS any ideas?
for additional info it is publishing the commands but its not doing anything
(I found out that it spits out “Controller manager not available” in the terminal)
Hi all,
Use this xacro in the file gazebo_control.xacro
The problem is due to the incorrect tag usage in the original code. The incorrect tags have been commented and substituted with correct ones.
Main question: How do I fix a link to the Gazebo world so it’s immobile?
Background:
I’ve gone through all the non-physical parts of Making a Mobile Robot before, with a lot of success.
I’m now at the point I want to buy parts for my own robot, so I’ve gone back and updated everything to a simple robot configuration that is interesting to me, and I’m having a bit of trouble with Gazebo.
My robot is a little flashlight holding bot, with an XY prismatic gantry and an AB revolute flashlight pointing head. It’s going to be mounted above my workbench and point a light at things I’m working on.
I want the base XY gantry to just be stuck floating in Gazebo about 1 m off the ground, and completely insensitive to inertial effects, like it’s been fastened to my workbench overhang.
Does anyone know how to do that? I haven’t found a good way to mark a URDF element as kinematic instead of dynamic for Gazebo.
My URDF is below, with placeholder inertial info for each link just to get it working in Gazebo: