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

Add Joint DOM API to access joint sensors #517

Merged
merged 4 commits into from
Mar 24, 2021

Conversation

azeey
Copy link
Collaborator

@azeey azeey commented Mar 17, 2021

🎉 New feature

Summary

This adds sdf::Joint::SensorCount, sdf::Joint::SensorByIndex, sdf::Joint::SensorNameExists, sdf::Joint::SensorByName.

Test it

Run tests

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Code check passed (In source directory, run sh tools/code_check.sh)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review
    another open pull request
    to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@azeey azeey requested a review from scpeters March 17, 2021 23:52
@github-actions github-actions bot added the 🏢 edifice Ignition Edifice label Mar 17, 2021
@azeey azeey self-assigned this Mar 17, 2021
TEST(DOMJoint, Sensors)
{
const std::string testFile =
sdf::testing::TestFile("sdf", "joint_sensors.sdf");
Copy link
Member

Choose a reason for hiding this comment

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

I think this file is missing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I always forget to add the sdf file 🤦🏾‍♂️ . Added in 8d50882

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@chapulina chapulina added the beta Targeting beta release of upcoming collection label Mar 18, 2021
Copy link
Collaborator

@jennuine jennuine left a comment

Choose a reason for hiding this comment

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

LGTM! One minor suggestion

src/Joint.cc Outdated Show resolved Hide resolved
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
@jennuine jennuine merged commit b87b45f into gazebosim:master Mar 24, 2021
@azeey azeey deleted the joint_sensor branch March 24, 2021 22:48
mjcarroll pushed a commit that referenced this pull request Aug 26, 2021
* Add Joint DOM API to access joint sensors

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Co-authored-by: Jenn Nguyen <jenn@openrobotics.org>
azeey added a commit to azeey/sdformat that referenced this pull request Oct 27, 2021
* Add Joint DOM API to access joint sensors

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Add missing file

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* modified Joint::SensorNameExists

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

Co-authored-by: Jenn Nguyen <jenn@openrobotics.org>
@azeey azeey mentioned this pull request Oct 27, 2021
azeey added a commit that referenced this pull request Oct 28, 2021
* Add Joint DOM API to access joint sensors

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Add missing file

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* modified Joint::SensorNameExists

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>

Co-authored-by: Jenn Nguyen <jenn@openrobotics.org>
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-01-10/1228/1

@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-03-25-fortress-edifice-citadel/1343/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection 🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants