Comments (2)
We used to have some examples of the jaco2, but looking at the latest code it looks like its no longer there. However, it's fairly simple to add. The control signal we send, u
, can be 9D for the jaco2. You can calculate the first 6 with one of our controllers. The last 3 are the force commands for the 3 fingers of the jaco2. You can change these values to open and close the hand, but we provide no gripper controllers in the repo. Note that if you are planning on using the real jaco2 that the gripper is position based only, but in our mujoco sims they are force based like the other actuators in the arm.
To use this feature just set the use_joint_dyn_addrs
to False
in the mujoco interface function call send_forces
. You can see the docstring here. Then you just add the three force commands you want for the gripper.
from abr_control.
Here is a simple example that oscillates between 4 and -4 Newtons of force every 2 seconds. If you remove the current call to send_forces(...
and add this snippet instead:
period = 2000 # dt is 1ms, making the period 2sec
max_N = 4 # max number of newtons of force (I believe the units will be Newtons)
u_gripper = max_N*np.ones(3) * np.sin(count/period * 2* np.pi)
print(u_gripper)
u = np.hstack((u, u_gripper))
You can create a controller, or just add a constant force for a set length of time to perform open/close commands given some set of conditions (i.e. if at location X send close command, if at location Y send open command).
from abr_control.
Related Issues (20)
- Add a warning when the joint state is ignored by mujoco_config
- AttributeError: 'MjViewer' object has no attribute 'exit' HOT 1
- Can we add AvoidObstacles in inverse kinematics path planner? HOT 1
- Non-linear trajectory issue HOT 6
- config.py file for UR5e HOT 1
- Control of two robots HOT 2
- Error HOT 2
- Mujoco config.joint_names all None when using muscles
- error occurs when calculation of 'C' HOT 6
- What is the effect of dt in your expressions? HOT 4
- Can I download those mesh and texture files directly? HOT 2
- Other arms with ABR_Control HOT 2
- xyz_offset argument with problems HOT 7
- Inverse kinematic for Mujoco HOT 3
- ask for reference about the controllers HOT 3
- Dynamics Adaptation using hardcoded Tau and dt values HOT 2
- TypeError: 'numpy.ndarray' object is not callable HOT 2
- MujocoConfig Error HOT 3
- Mujoco install issues I encountered. HOT 2
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 abr_control.