-
Notifications
You must be signed in to change notification settings - Fork 42
[noetic] Nested models for f1 #192
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
Comments
Hey @pariaspe was exploring the repository and came across this issue, I'm a first-timer, can you tell something more about this issue and some steps to solve it, i would like to take it up! |
Hi @Hady68 , current SDF models have a lot of duplicated code. The idea is to create a base model (f1_base for instance) and include that base model in the final ones. You can take a look at the SDFormat specification docs. |
I'll take a look |
@pariaspe Is this issue still open? |
Yes @Faizan-Alam-1, it is open. Improving the Gazebo Formula1 car model would be a nice contribution. Cheers |
@jmplaza Can you please let me know exactly what I need to improve? I have noticed that the code contains many comments and repeated lines of code. Do I need to improve that? This f1 model code. |
Hi @Faizan-Alam-1, current SDF models have a lot of duplicated code. The idea is to create a base model (f1_base for instance) and include that base model in the final ones. You can take a look at the SDFormat specification docs. |
For further clarification, I'm providing an example. Please review it. Is this the way you talk about it? First, I will create a file named f1_base.sdf with the following code inside:
For example, I'm including only front_right_wheel and front_left_wheel, but I will add all components of the f1 model. In the existing f1 model, the .sdf file will contain this code:
|
@pariaspe Please let me know if this is the way you want it. If not, please provide some more explanation. |
Kind of, what we need is a base model ( Take a look at this example: <?xml version="1.0" ?>
<sdf version="1.6">
<model name="f1_renault_cam">
<pose>0 0 0 0 0 0</pose>
<static>false</static>
<include merge="true">
<uri>model://f1</uri>
<name>f1</name>
</include>
<link name='camera_link'>
............
</link>
<joint type="fixed" name="camera_joint">
<parent>f1::f1_link</parent>
<child>camera_link</child>
</joint>
</model>
</sdf> |
Is this issue Still open? |
Not for noetic anymore. But you can take a look at humble models and check if models are nested |
Since some models use the same f1 (plus some different plugins), they can be nested to reduce pkg size and increase readability.
The text was updated successfully, but these errors were encountered: