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

Fix gimbal imu sensors intefering with each other #549

Merged
merged 1 commit into from Jul 18, 2020

Conversation

Jaeyoung-Lim
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim commented Jul 18, 2020

The gimbal imu sensors would interfere with each other if there were more than one vehicle with a gimbal.

This was because the GetSensor method was using a unscoped name, therefore was taking one of the gimbal imu sensors from any of the vehicles that exists in the world.

This PR solves this problem by getting the sensor pointer with a fully scoped name which allows the simulation to have multiple instances of vehicles with a gimbal

Tests
Tested in SITL gazebo on the typhoon_h480 and the gimbal was controlled through mavros.

ezgif com-video-to-gif (4)

Additional Context
Fixes #540

The gimbal imu sensors would interfere with each other if there were more than one imu sensor with the same name.

Getting the sensor pointer with the fully scoped name allows the simulation to have multiple instances of vehicle with a gimbal
Copy link
Member

@TSC21 TSC21 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@Jaeyoung-Lim Jaeyoung-Lim merged commit 07820ee into master Jul 18, 2020
@Jaeyoung-Lim Jaeyoung-Lim deleted the pr-fix-gimbalimu-scope branch July 18, 2020 15:30
@Jaeyoung-Lim Jaeyoung-Lim mentioned this pull request Aug 12, 2020
RyosukeMatsushima pushed a commit to RyosukeMatsushima/PX4-SITL_gazebo that referenced this pull request Jun 21, 2022
The gimbal imu sensors would interfere with each other if there were more than one imu sensor with the same name.

Getting the sensor pointer with the fully scoped name allows the simulation to have multiple instances of vehicle with a gimbal
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.

Controlling gimbals for multiple vehicles using ROS node in SITL
2 participants