示例#1
0
        public void SendRelJointCommand(JacoJointCommand cmd)
        {
            m_LastCmd = DateTime.Now;
            m_Arm.ConfigurationsManager.SetAngularControl();

            if (cmd.shoulder_pitch < -CMD_EPSILON)
            {
                m_Cmd.InclineLR = -1;
            }
            else if (cmd.shoulder_pitch > CMD_EPSILON)
            {
                m_Cmd.InclineLR = 1;
            }
            else
            {
                m_Cmd.InclineLR = 0;
            }
        }
        public void SendRelJointCommand(JacoJointCommand cmd)
        {
            m_LastCmd = DateTime.Now;
            m_Arm.ConfigurationsManager.SetAngularControl();

            if (cmd.shoulder_pitch < -CMD_EPSILON)
                m_Cmd.InclineLR = -1;
            else if (cmd.shoulder_pitch > CMD_EPSILON)
                m_Cmd.InclineLR = 1;
            else
                m_Cmd.InclineLR = 0;
        }