-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Absolute file URIs for Gazebo and Ignition simulations break visualization on remote machine #53
Comments
I see this is already discussed in #15 |
I'm using In gazebo_spawn_robot = Node(
package="gazebo_ros",
executable="spawn_entity.py",
name="spawn_ur",
arguments=["-entity", "ur", "-topic", "robot_description", "-package_to_model"],
output="screen",
) If I hardcode |
On closer inspection it looks like |
Ah, now I notice that I didn't have The I was appending a defunct colcon workspace to my |
Did you use this package to simulate a Robot with the gazebo-package or is this the default option for the gazebo repo? Do you know how to use the gazebo-repo with a customized version of this description-repo? |
Yes, you could try building the following branches of my forks of this description repo and the Gazebo repo: Check out the and check out the This is more related to #56 in this repo. This issue here is just about visualizing when RViz is on a remote machine. I think there's a straightforward fix but there's a lot of this stuff that should probably wait for something like #59 and build from there. |
I'm trying to work with https://github.com/UniversalRobots/Universal_Robots_ROS2_Gazebo_Simulation/ to look into Issue #19
Expected Behavior
After I launch the Gazebo simulation on one computer, I can visualize the robot in RViz on another computer on the same network, similar to the behavior I see with
ur_robot_driver
.Actual Behavior
Robot meshes are not visible in RViz on a remote machine because the mesh URIs in
/robot_description
are notpackage:///
URIs. Instead, they refer to concrete absolute paths asfile:///
URIs on the simulation machine.RViz Remote Machine Error Messages
/tf
transforms and other topics are not a problem:Details
This behavior is clearly intentional, per
force_abs_paths
here:https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/blob/ros2/urdf/ur_macro.xacro#L99
I suppose this is necessary for the URDF -> SDF conversion process to spawn the model in Gazebo Classic or Gazebo (Ignition flavor), like here, but it does break other uses of
/robot_description
.The text was updated successfully, but these errors were encountered: