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

robot_description not accessible from custom ros2 controller #440

Open
fafux opened this issue Jul 21, 2023 · 2 comments
Open

robot_description not accessible from custom ros2 controller #440

fafux opened this issue Jul 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@fafux
Copy link

fafux commented Jul 21, 2023

Environment

  • OS Version: Ubuntu 22.04
  • ROS2 version: humble
  • Source or binary build?
    ros-humble-ros-gz/jammy,now 0.244.11-1jammy.20230624.051759 amd64

Description

  • Behavior: Launching gz_sim.launch.py and create to spawn the urdf, parsing the xacro in which ign_ros2_control::IgnitionROS2ControlPlugin is contained, I expect the robot_description to be a parameter of the controller_manager but it's not. I want to access from a custom ros2 controller to the robot_description. Since it's not a parameter of the controller manager, the only way to access it is from a client (both service or parameter). In both cases, waiting the response of the future blocks the execution.
@fafux fafux added the bug Something isn't working label Jul 21, 2023
@azeey azeey moved this to To do in Core development Jul 24, 2023
@azeey
Copy link
Contributor

azeey commented Jan 4, 2024

Should this be filed at https://github.com/ros-controls/gz_ros2_control?
In general, gz_sim.launch.py doesn't publish anything to robot_description. You'd have to do that from your launch file. Here is a good example.

@fafux
Copy link
Author

fafux commented Jan 8, 2024

The standard ros2_control_node publishes the robot_description parameter which is passed to the node in the launch file as for the robot_state_publisher. For gazebo this is not possible. However, if I try to get the robot_description parameter with a parameter client to the robot_state_publisher node inside my controller, the execution is blocked to wait the response of the future callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

2 participants