ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Gazebo model isn't responding to ros2controller

asked 2021-08-27 00:57:31 -0500

kak13 gravatar image

Hi everyone,

So, I was doing the small test to gain my knowledge because I realized maybe my lack of understanding on ros2 cause a lot of issues with ros2 control and gazebo on customize model.

So, as I load launch using ros2 controller in a customized robot. (It has one joint on the top)

Everything seems normal after load the launch

[spawn_entity.py-2] [INFO] [1630041445.931482566] [spawn_entity]: Spawn Entity started
[spawn_entity.py-2] [INFO] [1630041445.932112684] [spawn_entity]: Loading entity published on topic robot_description
[spawn_entity.py-2] [INFO] [1630041445.934222930] [spawn_entity]: Waiting for entity xml on robot_description
[spawn_entity.py-2] [INFO] [1630041445.946031667] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
[spawn_entity.py-2] [INFO] [1630041445.946685609] [spawn_entity]: Waiting for service /spawn_entity
[spawn_entity.py-2] [INFO] [1630041445.951590881] [spawn_entity]: Calling service /spawn_entity
[spawn_entity.py-2] [INFO] [1630041446.085613662] [spawn_entity]: Spawn status: SpawnEntity: Successfully spawned entity [my_robot]
[gzserver-3] [INFO] [1630041446.123721033] [gazebo_ros2_control]: Loading gazebo_ros2_control plugin
[gzserver-3] [INFO] [1630041446.128421631] [gazebo_ros2_control]: Starting gazebo_ros2_control plugin in namespace: /
[gzserver-3] [INFO] [1630041446.128925481] [gazebo_ros2_control]: Starting gazebo_ros2_control plugin in ros 2 node: gazebo_ros2_control
[gzserver-3] [INFO] [1630041446.129052829] [gazebo_ros2_control]: Loading parameter file /home/bwuk/my_robot/fresh_description/install/fresh_description/share/fresh_description/config/rrbot_control.yaml
[gzserver-3] 
[INFO] [spawn_entity.py-2]: process has finished cleanly [pid 124481]
[INFO] [ros2-6]: process started with pid [124632]
[gzserver-3] [INFO] [1630041446.138162311] [gazebo_ros2_control]: connected to service!! robot_state_publisher
[gzserver-3] [INFO] [1630041446.144365200] [gazebo_ros2_control]: Recieved urdf from param server, parsing...
[gzserver-3] [INFO] [1630041446.184548924] [gazebo_ros2_control]: Loading joint: head_attach
[gzserver-3] [INFO] [1630041446.184619698] [gazebo_ros2_control]:   Command:
[gzserver-3] [INFO] [1630041446.184682829] [gazebo_ros2_control]:        effort
[gzserver-3] [INFO] [1630041446.185037012] [gazebo_ros2_control]:   State:
[gzserver-3] [INFO] [1630041446.185067249] [gazebo_ros2_control]:        position
[gzserver-3] [INFO] [1630041446.185375032] [gazebo_ros2_control]:        velocity
[gzserver-3] [INFO] [1630041446.185521924] [gazebo_ros2_control]:        effort
[gzserver-3] [INFO] [1630041446.187280675] [gazebo_ros2_control]: Loading controller_manager
[gzserver-3] [ERROR] [1630041446.230742315] [gazebo_ros2_control]: controller manager doesn't have an update_rate parameter

So, I ran the code (exactly as this link, but in my own namespace)

ros2 launch fresh_description example_velocity

The model in gazebo isn't moving. What did I miss?

The model looks like this (This model has one joint only)

image description

edit retag flag offensive close merge delete

Comments

I know it is a rather oldish question, but I ran into a similar one, recently. I was in fact missing a line similar to this one in my controllers.yaml file. Basically, that seems to be what the output tries to tell you.

fexner gravatar image fexner  ( 2022-01-26 07:40:00 -0500 )edit

Ah, no wonder! Thank you so much for your time to comment this! I gave up on controller_manager and started with joint_controller in ignition fortress + Foxy! I should come back and get controller_manager to gain my experience. I will use what you commented and see if it got me through the issue.

kak13 gravatar image kak13  ( 2022-01-27 08:47:56 -0500 )edit

I have the same missing parameter reported. However I certainly do have update_rate: 100 inside my yaml file.

Alexander gravatar image Alexander  ( 2022-06-09 08:07:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-08-10 09:36:18 -0500

If you are using this under your own namespace then you should also place controller manager under a namespace, i.e., the parameters file should also hold a namespace otherwise controller_manager's parameters and controller parameters can not be loaded properly.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-08-27 00:57:31 -0500

Seen: 694 times

Last updated: Aug 10 '22