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

Iron + Harmonic examples not responding. #270

Open
patrvanh opened this issue Apr 5, 2024 · 3 comments
Open

Iron + Harmonic examples not responding. #270

patrvanh opened this issue Apr 5, 2024 · 3 comments

Comments

@patrvanh
Copy link

patrvanh commented Apr 5, 2024

Not sure what is going on but It seems that on harmonic, the examples are not working.

I've installed ros_gz_sim and gz_ros2_control from source from the iron branch as I'm on iron.
Running the example launch files for cart velocity and effort does seem to load properly without any errors and running the example binaries for the velocity and effort do publish command messages as expected but the cart model is unaffected in both cases.

In the case of the position control example, running the position example binary throws the following error:

ros2 run gz_ros2_control_demos example_position
node created
terminate called after throwing an instance of 'std::runtime_error'
what(): could not get action server
[ros2run]: Aborted

I can't find any documentation on how to debug this further. For example through what kind of interface does the controllers manipulate the joints and is it possible to see if the controllers actually receive the commands and try to do something with the commands.

@patrvanh
Copy link
Author

patrvanh commented Apr 5, 2024

As a note, I was adding the velocity controller to a model I'm working on and had the same issue there. One positive note is that the joint that I was adding the velocity controller seemed to stay in place and not drop down because of gravity after adding the velocity controller.

So something must be controlling the joint but It's just not getting new commands I suppose?

@patrvanh
Copy link
Author

patrvanh commented Apr 5, 2024

Seems that the controllers are not loaded properly in my environment for some reason.

After running the launch file, no controllers are loaded:

$ ros2 control list_hardware_interfaces 
command interfaces
	slider_to_cart/effort [available] [unclaimed]
state interfaces
	slider_to_cart/effort
	slider_to_cart/position
	slider_to_cart/velocity

If I then manually load the controllers after running the launch command, then it works fine.

@christophfroehlich
Copy link
Contributor

Just to clarify: You can run ros2 launch gz_ros2_control_demos cart_example_position.launch.py successfully? Are there any errors written in the log? What reports ros2 control list_controllers?

I tested this just now and works on iron.

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

No branches or pull requests

2 participants