-
Notifications
You must be signed in to change notification settings - Fork 304
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
URDF <gpio> component state interface "initial_value" param not getting read. #1277
Comments
I was not able to reproduce your issue with ros-controls/ros2_control_demos#429, neither on rolling or humble. Can you have a look at this PR, if there is a difference to your configuration? Btw there is already a test for that ros2_control/hardware_interface/test/mock_components/test_generic_system.cpp Lines 1662 to 1679 in 71506d5
|
@Nibanovic , will you be able to check this behavior with rolling? I see some code changes around the mock components in rolling. Just asking to verify this behavior on rolling. |
Thank you @christophfroehlich for enhancing example 10. Your changes are working well for me for rolling. Humble yet to be checked. |
Tried your test @christophfroehlich with humble also. Working as expected. |
I have rebuilt my packages and retested everything as described in the issue. Funnily enough, now it is working as expected. Thanks for your time, apologies for the non-issue. |
Describe the bug
I've been trying to set up
scaled_joint_trajectory_controller
for my manipulator, like in UR_robot_driver, and test it using mocked hardware.To do that, I need a
<gpio>
component which will hold thescaling_factor
value.Example component:
When setting the
initial_value
param, like in<joint>
components for example, the param is not getting read.To Reproduce
<ros2_control>
tag in URDFmock_components/GenericSystem
as hardwarespeed_scaling_state_broadcaster
controller from ur_controllers, which publishes the state interface of the componentros2_control
node,robot_state_publisher
node and thespeed_scaling_state_broadcaster
ros2 topic echo /speed_scaling_state_broadcaster/speed_scaling
Expected behavior
I would expect the topic to echo
100.0
, asspeed_scaling_state_broadcaster
outputs the factor as %.The actual output is
.nan
.More Context
If I change the
<gpio>
tag to<joint>
, so that the component looks like this:... the component behaves as expected with mocked hardware. This leads me to believe that there could be an issue with the way
<gpio>
paraminitial value
is parsed in themock_components/GenericSystem
Environment:
ros2_control
andur_controllers
packages arehumble
The text was updated successfully, but these errors were encountered: