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

Revert "Switch fake to mock for ros2_control updates (#77)" #78

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

fmauch
Copy link
Collaborator

@fmauch fmauch commented Jul 12, 2023

This reverts commit aedef36 that was done based on #76

Since it was only a deprecation warning, there is no need to break API on humble.

@sea-bass just to clarify: On humble using fake_hw should not break anything, but it should only raise a deprecation warning. So, since switching to mock in our description files would actually introduce an unnecessary API incompatibility, hence I'd like to revert this.


Edit: Iron should follow that.

)"

This reverts commit aedef36.

Since it was only a deprecation warning, there is no need to break API
on humble.
@fmauch fmauch changed the base branch from ros2 to humble July 12, 2023 18:08
@sea-bass
Copy link
Contributor

sea-bass commented Jul 12, 2023

Agreed on not introducing breaking APIs to Humble.

I was on Humble and these changes resolved a segfault about missing state interfaces for me... but maybe there was something else going on.

As long as reverting these changes keeps mock hardware examples working on Humble in you guys' testing, that should be OK and I will keep chasing the problem on my side.

<plugin>mock_components/GenericSystem</plugin>
<param name="mock_sensor_commands">${mock_sensor_commands}</param>
<param name="fake_sensor_commands">${fake_sensor_commands}</param>
Copy link
Contributor

@sea-bass sea-bass Jul 12, 2023

Choose a reason for hiding this comment

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

I actually think this line is where ros2_control did introduce an incompatibility in Humble. See https://github.com/ros-controls/ros2_control/pull/1051/files#diff-1d9f9ba7c75ec81444e8ed7da3e5ac7a9fac2c515cb752ccd45d7a520dff97b4R62

You can keep your own xacro argument named as fake_sensor_commands, but you may need to do something like:

Suggested change
<param name="fake_sensor_commands">${fake_sensor_commands}</param>
<param name="mock_sensor_commands">${fake_sensor_commands}</param>

... but please test it!

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, actually I see now that they do still check fake_sensor_commands... so my segfault must be something else. Bummer. Sorry about that.

@RobertWilbrandt RobertWilbrandt merged commit c805a88 into UniversalRobots:humble Jul 13, 2023
@fmauch fmauch deleted the revert_mock_humble branch September 10, 2024 06:39
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.

3 participants