Comments (8)
Hi~
-
I'll check and answer to you later.
-
I think
direct_control module
is not suitable for you. when an user sends the target position of joints,direct_control module
make its own trajectory using minimum jerk. It's why it moves slow.
I recommand you to use direct mode ofrobotis_controller
.
- Set module to none
- make a message and put data to
none
- send it to
/robotis/enable_ctrl_module
- make a message and put data to
- Control joint angles
- make and send a topic to
/robotis/set_joint_states
- make and send a topic to
Regards,
Kayman
from robotis-op3.
I found a bug. op3_direct_control
module make a own trajectory using a thread in the callback function.
when a new topic is subscribed before finishing a thread, it happened. I fixed it, please update a source.
I'm sorry for your inconvenience.
Thanks,
Kayman
from robotis-op3.
I found a bug.
op3_direct_control
module make a own trajectory using a thread in the callback function.
when a new topic is subscribed before finishing a thread, it happened. I fixed it, please update a source.I'm sorry for your inconvenience.
Thanks,
Kayman
Thanks so much for your reply. I've tried robotis_controller
, and it works great. It respond fast and other joint will not move unexpectedly. I think I will stick on it for this moment!
from robotis-op3.
Itβs my pleasure.
Please open an issue if you have any other questions.
from robotis-op3.
Hi, Our lab just purchased a Darwin-OP3. However, I have some issues with direct control mode. Here is the video link:. From this video, I have two issues.
- From the set joint position control, I only have 'r_sho_pitch', 'l_sho_pitch' changes with time, Other joints should be fixed. But the from the video, you can clearly tell that the joints on the leg moves along the time as well, and so does the 'x_sho_roll'! That's weird.
- In the demo walking mode, the joints' behaviour are really impressive, they respond fast and agile. However, when I publish the reference position to 'robotis/direct_control/set_joint_state' in direct control mode, the joints move slow. When I check the joint gain, I think they are large enough (Kp = 800, Ki=0 , Kd=0). I'm thinking maybe there is a safety reason here? I know that the motor is totally capable of fast response. Or I need to directly talking to the motor without ros-manager?
The code I use corresponding to the video is here:#!/usr/bin/env python import rospy from sensor_msgs.msg import JointState import numpy as np def pub_head_pan(): pub = rospy.Publisher('/robotis/direct_control/set_joint_states',JointState,queue_size = 30) rospy.init_node('test_joint_node') rate = rospy.Rate(50) count = 0 jointstate = JointState() jointstate.position = np.zeros(20) while not rospy.is_shutdown(): count = count+1 print(count) desired_position = np.sin(0.01*count) jointstate.name = ['r_sho_pitch','l_sho_pitch','r_sho_roll', 'l_sho_roll','r_el','l_el','r_hip_yaw','l_hip_yaw', 'r_hip_roll','l_hip_roll','r_hip_pitch','l_hip_pitch', 'r_knee','l_knee','r_ank_pitch','l_ank_pitch', 'r_ank_roll','l_ank_roll','head_pan','head_tilt'] jointstate.position[0]=np.sin(0.02*count) jointstate.position[1]=np.cos(0.02*count) #jointstate.position[19]=np.cos(0.02*count) jointstate.position[10] = 0.505/2 jointstate.position[11] = -0.505/2 jointstate.position[12] = -0.505 jointstate.position[13] = 0.505 jointstate.position[14] = -0.505/2 jointstate.position[15] = 0.505/2 jointstate.velocity = [] jointstate.effort = [] pub.publish(jointstate) rate.sleep() if __name__ == '__main__': try: pub_head_pan() except rospy.ROSInterruptException: passI need to implement our own online walking algorithm, so I need to make sure that the joints of the robot is capable of fast response.
A sample code of yours is going to be really helpful!!!
Hope you can help me.Best
Yuan
Hi Yuan,
Which simulation envrionmet do you use? Gazebo?
from robotis-op3.
Hi Yuan,
Which simulation envrionmet do you use? Gazebo? Did you solve walking problem? We have walking problem in Gazebo also.
from robotis-op3.
Hi Yuan,
Which simulation envrionmet do you use? Gazebo? Did you solve walking problem? We have walking problem in Gazebo also.
Hi, I didn't use the simulation software for the issue I've mentioned in this thread. I have never used Gazebo. If you want to use some easy simulation software, I recommend Webots, it has build-in Darwin OP3 model, and it's opensource free software.
from robotis-op3.
Many thanks
from robotis-op3.
Related Issues (20)
- UPDATE ROS DISTRIBUTION FOR ROBTIS OP3 HOT 2
- how to change the frame of the robot's leg? HOT 6
- There is process dying problem. HOT 2
- Power SMPS for OP3 HOT 1
- Action module can't play step HOT 1
- Control Item was not found on op3_manager HOT 1
- After over 5 months of working with my OP3 like-setup, I am getting an error right after the dynamixels flash. HOT 21
- The Robotis OP3 has a stuttering on his servo HOT 13
- Asking about the dynamics of the robot HOT 1
- ROS installation error while installing the humanoid_navigation package HOT 1
- op3 goes into a relaxed position using robotis_controller not direct controller for my walking algorithm
- Can't open action editor HOT 1
- How to let the op3 raise raise hand when walking. HOT 1
- question about torque limits of OP3 motor HOT 1
- [RobotisController] first bulk read fail!!
- a HOT 1
- balance control after modifying some part
- How can I use multiple robotis op3 under the same network with one master?
- Online walking for OP3 is not working in Ubuntu 20.04.6 LTS with ROS Noetic. HOT 2
- error saat menyalakan power pada servo dinamixel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotis-op3.