Search found 2 matches

by Cesarg21
27 Jan 2024, 02:11
Forum: General questions
Topic: How to implement my own PID controller?
Replies: 3
Views: 4337

Re: How to implement my own PID controller?

Thanks for the feedback.

I tried to implement this on the base (for a simple pendulum model):

#python
import math

def sysCall_init():
sim = require('sim')
self.joint=sim.getObject('./Joint')
# do some initialization here
def sysCall_joint(joint):
print(type(joint))
return {'force':1}

def ...
by Cesarg21
26 Jan 2024, 03:10
Forum: General questions
Topic: How to implement my own PID controller?
Replies: 3
Views: 4337

How to implement my own PID controller?

Hi everyone, my question is relatively trivial I think.

How can I implement the PID control on each robot manipulator joint given that:

1) If I try to implement it inside the sysCall_actuation() function of my robot base's child script, it will only run the PID code once during each simulation ...