Skip to content
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

Move iris to use jinja templates #609

Merged
merged 4 commits into from Sep 29, 2020
Merged

Move iris to use jinja templates #609

merged 4 commits into from Sep 29, 2020

Conversation

Jaeyoung-Lim
Copy link
Member

Problem Description
iris was the only model being generated with xacro macros, and xacro macros are slowly becoming out of date by not supporting more recent sdf syntaxes.

Solution
This PR moves the iris model generation from xacro macros to jinja templates by doing the following.

  • Deprecate xacro genration commands from cmake and rely on jinja templates
  • Moves iris mesh files from rotors_description to iris

We keep the xacro macros for now, since the multivehicle scripts still rely on them. rotors_description will be deprecated once the multivehicle scripts are based on jinja templating.

Since generated sdf files are now marked as <model>-gen.sdf, `iris.sdf` should be also marked as `iris-gen.sdf`
Move iris to jinja templates

This commit deprecates the xacro based sdf generation for the iris model
This commit moves the meshfiles out of rotors_description so that we can deprecate rotors_description once the mutlivehicle scripts are based on jinja templates
@Jaeyoung-Lim
Copy link
Member Author

SITL test failures seem quite intermittent

Wasn't able to build mavsdk  tests due to the incorrect mavsdk version
models/iris/iris.sdf.jinja Outdated Show resolved Hide resolved
</joint_control_pid>
<joint_name>zephyr_delta_wing::propeller_joint</joint_name>
</channel>
<channel name='rotor6'>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is not related to this PR, and is causing SITL failures can we address it in a separate PR? This is blocking multivehicle scripting and mavsdk testing for jinja based models

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it's not making much sense why this would cause failures. This isn't supposed to exist for this model.

@Jaeyoung-Lim Jaeyoung-Lim force-pushed the pr-gen-suffix branch 2 times, most recently from c454311 to e45e102 Compare September 28, 2020 18:11
- Explicitly state that the sdf file is genretaed
- Remove -0
- Remove redundant channels
- Fix model configs
@Jaeyoung-Lim
Copy link
Member Author

@TSC21 Thanks!

@Jaeyoung-Lim Jaeyoung-Lim merged commit 4e0eb1b into master Sep 29, 2020
@Jaeyoung-Lim Jaeyoung-Lim deleted the pr-gen-suffix branch September 29, 2020 09:17
RyosukeMatsushima pushed a commit to RyosukeMatsushima/PX4-SITL_gazebo that referenced this pull request Jun 21, 2022
* mark iris.sdf as iris-gen.sdf

Since generated sdf files are now marked as <model>-gen.sdf, `iris.sdf` should be also marked as `iris-gen.sdf`
Move iris to jinja templates

This commit deprecates the xacro based sdf generation for the iris model

* Move meshfiles out of rotors_description

This commit moves the meshfiles out of rotors_description so that we can deprecate rotors_description once the mutlivehicle scripts are based on jinja templates

* Update mavsdk version

Wasn't able to build mavsdk  tests due to the incorrect mavsdk version

* Address review comments

- Explicitly state that the sdf file is genretaed
- Remove -0
- Remove redundant channels
- Fix model configs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants