Open chapulina opened 3 years ago
Hi!
I'm working on this branch, and I have some questions:
Is it possible to include xacro tags directly in the SDF code? I was looking but I did not find decision blocks (similar to the
can revolution joints
be used in a xacro file? In the original Dolly model, a Joint Revolute is used for the wheels. However, when I wrote the Xacro I use Continuous Joints since in this way the diff_drive plugin
can work correctly. Or is it an error with my environment?
Is it possible to include xacro tags directly in the SDF code?
I recently looked a bit into it and I couldn't find a way :confused: I originally thought that xacro was general enough to template any XML file but now I think it's very specific to URDF...
In this case, I think it may be possible to use SDF param passing. It's not as flexible as xacro, but it should be enough.
can revolution joints be used in a xacro file?
URDF has a revolute
joint type, but in this use case, continuous
would be more fitting. SDF uses revolute
for both types.
I've been trying to stick to SDF with Dolly because it's more flexible than URDF, but as you're seeing, there are some details still to be figured out :slightly_smiling_face:
There are 2 Dolly SDF models now, one for Gazebo Classic and one for Ignition Gazebo:
I kept them separate for expediency, but they could be moved to a single
dolly_description
package and reused for both simulators. Xacro could be used to insert the plugins appropriate to each simulator.