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

controllers loaded but the robots falls #426

Open
peakyquest opened this issue Oct 12, 2024 · 12 comments
Open

controllers loaded but the robots falls #426

peakyquest opened this issue Oct 12, 2024 · 12 comments

Comments

@peakyquest
Copy link

I am using humble with gazebo ignition. I am able to spawn the robot in the ignition env, and I all the controllers are active, still my robot falls on the ground, and when I am publishing something on the topic the robot doesnt move

@christophfroehlich
Copy link
Contributor

Please give more information to be able to help you.

Which controllers are you using?
For example, add output of ros2 control list_controllers and ros2 control list_hardware_components

@peakyquest
Copy link
Author

IMG_5257
IMG_5256
IMG_5259

I have added damping and fiction in my urdf, which makes my robot stand, but I am not sure is this a correct way. Further more I was unable to move the robot with the trajectory topics, should I have to use ign_bridge but there is no ign_bridge used in the ros2 control demos videos. A bit confused.

@christophfroehlich
Copy link
Contributor

As you are using joint_trajectory_controller, you have to send topics to the /<controller_name>/joint_trajectory topics or use its action interface.

Please don't post screenshots, better copy the log as txt in a code fraction or upload a txt file if it is too long.

Which command interfaces are you using? As I already asked for: ros2 control list_hardware_components

@peakyquest
Copy link
Author

Hardware Component 1
name: IgnitionSystem
type:
plugin name:
state: id=3 label=active
command interfaces
joint_1/position [available] [claimed]
joint_2/position [available] [claimed]
joint_3/position [available] [claimed]
joint_4/position [available] [claimed]
joint_5/position [available] [claimed]
joint_6/position [available] [claimed]

@christophfroehlich
Copy link
Contributor

Have you tried to send something to the controllers with the mentioned topics, e.g., via rqt_joint_trajectory_controller?
Falling robots could also be a result from wrong masses/inertias of the links -> the solver explodes.

@peakyquest
Copy link
Author

urdf.txt
controller.txt
launch.txt

well I use rqt_joint_trajectory_controller but the robot doesnt move either.
and I have use mu old urdf, which worked fine on gazebo classic, so I am sure that it isnt about masses and inertia, however this was the link which I get my urdf frrom
https://github.com/ros-industrial/kuka_experimental/blob/melodic-devel/kuka_kr210_support/urdf/kr210l150.urdf

@kdeshp-prof
Copy link

kdeshp-prof commented Jan 8, 2025

Is there any resolution on this one!! I seem to have same problem with my custom mobile manipulator
ROS2 Jazzy, GZ Harmonic

@christophfroehlich
Copy link
Contributor

@kdeshp-prof you opened the other issue #474 right?
@peakyquest have you fixed your problem? If you want us to introspect your setup, then you have to provide a full example / package to reproduce it.

@kdeshp-prof
Copy link

kdeshp-prof commented Feb 12, 2025

@christophfroehlich #474 was not opened by me, the solution mentioned by you their works.
But, my problem with my custom robot is still unresolved.
The controllers become active for my manipulator and the manipulator is still falling

After controllers becoming active this is the only warning or debug message I see.
[gazebo-1] [WARN] [1729980256.923015232] [gz_ros_control]: Desired controller update period (0.01 s) is slower than the gazebo simulation period (0.001 s).
[gazebo-1] [Dbg] [SDFFeatures.cc:332] Mesh construction from an SDF has not been implemented yet for dartsim. Use AttachMeshShapeFeature to use mesh shapes.
[gazebo-1] [Dbg] [SDFFeatures.cc:863] The geometry element of collision [joint] couldn't be created

Since, the custom robot belongs to a proprietary vendor making the URDF public or other piece of code is not possible
From, the above can you please tell me if I need to fix something in the URDF or the problem lies on control side?

@christophfroehlich
Copy link
Contributor

Can you try a different physics engine than dart? We don't have tests for that, it may be that something is working different there.

@peakyquest
Copy link
Author

yes, I have changed the model, I was first working on kuka robotic arm, but the urdf has some issues, the inertia of the links were not correct, so I moved to the panda robotic arm, the ros2 controller work properly on the panda's sdf model.

@peakyquest
Copy link
Author

@kdeshp-prof I will suggest you try to configure the proper inertia of the robot, or try to find robot similar to yours on the following website, an then try to add ros2_controller Fuel Ignition

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

3 participants