RBinsonB / nexus_4wd_mecanum_simulator

ROS Repository for the robot description and gazebo simulation of the Nexus 4WD Mecanum wheel robot
GNU General Public License v3.0
84 stars 23 forks source link

No transform from [x] to [base_link] #1

Closed broose-goose closed 3 years ago

broose-goose commented 3 years ago

Thank you so much for posting this!

I recently got a nexus 4wd omni platform and just got the motors and everything talking to ros. When I launched your gazebo program, everything worked as expected, but when I tried opening RVIZ I got a weird error...

The RobotModel displays the base_link, but on every other link it displays "No transform from [x] to [base_link]", and all the wheels are in the middle. Do you know what might be causing this? I tried taking inertial / collision tags out of the xarco file, tried precompiling from xarco to urdf but nothing. Its like RVIZ is completely ignoring the joint tags from the urdf...

Screenshot from 2020-11-07 22-22-00

Let me know if you have any ideas of what may be causing this. In the meantime i'll keep banging on it, thanks again!

broose-goose commented 3 years ago

Update: if we change the wheels to fixed and have gazebo running, the wheels show up in the correct location! Not sure why that is though; I assume it is because gazebo publishes some message that lets rviz "figure it out". Any thoughts?

broose-goose commented 3 years ago

NEVER MIND, GOT IT WORKING!

Had to change the wheel shafts to fixed joints and take out the tag from those joints as well. Removing the axis tag was the clincher!

RBinsonB commented 3 years ago

The gazebo plugin indeed publishes the information needed to get the wheel transforms. If you change the joint to fixed it don't really solves the issue as you just consider the whole robot as one fixed entity. It can be good enough for your application but usually the RViz launch file is called by other launch files with nodes providing their transforms for those links.