-
Notifications
You must be signed in to change notification settings - Fork 769
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
alternative for libgazebo_ros_control.so in ROS1 ? #946
Comments
There is none as of now. |
Thank you for the prompt response. Then, is there any joint_state_subscriber-like plugin? I found a demo for the gazebo_ros_joint_state_publisher usage but I cannot find any plugins for the opposite function that I can use in my sdf file. Thank you very much, |
I don't think there is any such plugin currently. Can you please explain what would you expect it to do. |
Thank you for your reply. Please let me know if I am misunderstanding something. If you run the following tutorial, you can give a command to the robot in the Gazebo simulator using the /demo/cmd_demo topic. I would like to the same process to joints of a manipulator and control joint angles using a plugin. (Or if I don't need to use a plugin, how can I do that without using a plugin?) Best regards, |
To apply force to joints, |
I just tested gazebo_ros_force_demo as your suggestion, but it is not what I am looking for. Is there any way I can give position commands to the joints (not force or torque. Let me know if there is any misunderstanding in this sentence). As gazebo_ros_joint_state_publisher_demo will run a node that publishers the current positions, it will be nice if there is a node that subscribes position commands this time. Thank you very much, |
Unfortunately, there is no such plugin as of now |
The progress of porting |
Correct
Using purely Gazebo, you could use the JointControlPlugin for position control using a PID, or a custom plugin that publishes commands using Since the ETA on |
Joint Pose Trajectory might be helpful. |
Thank you very much. I did below and tried the new plugin but I've got the following error (also stated below)
Regards, |
Actually it has not been merged yet. For now you can try out my fork here until this makes it to the release. You will have to source build |
I downloaded the source package from the link and tried to build it but my pc freezes when it is building the gazebo_plugins package (at approx 76%). I tried it several times. Would you check again if it works fine or let me know when it will be merged and released? (no problem occurred while building gazebo_msgs, gazebo_ros) Regards, |
It builds fine for me. Can you try building some other branch in the fork and see what happens? |
I tried to build the dashing branch but failed. I do not know why I cant build it in my environment but I will just wait for it to be merged. Thank you! |
I tested the plugin and I think it needs two functions to be implemented.
The following link is a video recording of the gazebo screen when I used the plugin with my robot model on Gazebo. (link) Thank you, |
Since this was just a port from ROS1, I did not try to modify its behaviour from what it originally did. Smooth movements would require pid on the joints which would have to be tuned differently for all joints. Maybe we can add this feature and make it an sdf parameter for the users to choose between smooth or immediate movement. @chapulina what do you think about this
Sorry I could not understand what you meant by this |
Changing that plugin to do PID control goes beyond the scope of porting it to ROS 2. If we'd like to offer a PID option, I reiterate my suggestion from #946 (comment) of creating a new plugin which is a wrapper around |
Thank you for the advice. I do not understand what that means. I understood that comment as there is a custom plugin that I can possibly use but there is no ROS2 interface yet so I cannot use it yet. If I can use it, is there any reference I can refer to to better understand the usage of it. I briefly googled 'ROS2 JointControlPlugin' but I couldn't find any good source I could get info from. Regards, |
No, it doesn't exist yet. I said I was suggesting
If you're not interested in implementing it, you'll need to wait for |
Hi,
I would like to ask which plugin I can use in ROS2 instead of libgazebo_ros_control.so.
I didn't really find a good substitute for it in the following link
It will be best if there is a demo sample that I can refer to.
--------------------------------------------------------------- [original code in ROS1]
Thank you in advance,
Ryan
The text was updated successfully, but these errors were encountered: