You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am adding mocap to the end of a Kinova Gen3 in mujoco to control a robotic arm. When I initialize the robotic arm, it works fine. But when the simulation starts, the robotic arm immediately returns to zero and then moves under the control of the mocap. I want to know why this is happening.This is my running code:
import mujoco
import mujoco.viewer
import numpy as np
import time
from copy import deepcopy
I am adding mocap to the end of a Kinova Gen3 in mujoco to control a robotic arm. When I initialize the robotic arm, it works fine. But when the simulation starts, the robotic arm immediately returns to zero and then moves under the control of the mocap. I want to know why this is happening.This is my running code:
import mujoco
import mujoco.viewer
import numpy as np
import time
from copy import deepcopy
class KinovaControl:
def init(self, filename, init_position='home', is_show=True):
self.model = mujoco.MjModel.from_xml_path(filename)
self.data = mujoco.MjData(self.model)
if name == "main":
xml_path = "/home/zhangsl/DualArmControl/kinova_gen3/scene.xml"
kinova_control = KinovaControl(xml_path, 'home')
kinova_control.main()
My xml is modified from mujoco_menagerie
kinova_gen3.zip
The text was updated successfully, but these errors were encountered: