pollen-robotics / reachy_2023

Reachy 2023 workspace
Apache License 2.0
17 stars 8 forks source link

memory leak using the goal position or the goto function on simulator #204

Open GeoffroyK opened 1 year ago

GeoffroyK commented 1 year ago

here is the simplest code to try the error

from reachy_sdk import ReachySDK
import numpy as np
from memory_profiler import profile
import time

reachy = ReachySDK(host='localhost')

def run():
    while True:
        reachy.r_arm.joints.r_arm_yaw.goal_position = np.random.random() * 100
        time.sleep(0.1)

if __name__ == "__main__":
    run()