MaxLewter16 / LLEAP

This repository is for the ROS2-based exoskeleton simulation developed by LLEAP, a Cal Poly club project.
Other
6 stars 2 forks source link

Gazebo and RVIZ not working together #14

Open KyleQ1 opened 1 year ago

KyleQ1 commented 1 year ago

Currently, RVIZ and Gazebo don't work well together leading to this error in RVIZ: Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained at line 292 in ./src/buffer_core.cpp Warning: TF_OLD_DATA ignoring data from the past for frame right_thigh at time 338.504000 according to authority default_authority

Here is the node topic diagram.

Potential issues and solutions:

KyleQ1 commented 1 year ago

Using real-time instead of sim time fixes the issues. Rviz is still not being updated with the joint states from Gazebo even though the gazebo joint state node shows its publishing to Rviz.

KyleQ1 commented 1 year ago

https://imgur.com/a/7fyCOQr Node graph of sim time versus non-sim time. It seems rviz2 doesn't use the clock when using sim time but does when it's using real-time.