Project/open_dog.py
def _buildJointNameToIdDict(self):
        """
        Generate a dictionary matching the names of the urdf and the indices of the pybullet simulation
        """
        num_joints = p.getNumJoints(self.id)
        self.joint_name_to_id = {}
        for i in range(num_joints):
            joint_info = p.getJointInfo(self.id, i)
            self.joint_name_to_id[joint_info[1].decode("UTF-8")] = joint_info[0]

        Generate a dictionary matching the names of the urdf and the indices of the pybullet simulation
        
Generate a dictionary matching the names of the urdf and the indices of the pybullet simulation
Generate a dictionary matching the names of the urdf and the indices of the pybullet simulation
def _buildJointNameToIdDict(self):
        num_joints = p.getNumJoints(self.id)
        self.joint_name_to_id = {}
        for i in range(num_joints):
            joint_info = p.getJointInfo(self.id, i)
            self.joint_name_to_id[joint_info[1].decode("UTF-8")] = joint_info[0]
def _buildJointNameToIdDict ( self ) : num_joints = p . getNumJoints ( self . id ) self . joint_name_to_id = { } for i in range ( num_joints ) : joint_info = p . getJointInfo ( self . id , i ) self . joint_name_to_id [ joint_info [ 1 ] . decode ( "UTF-8" ) ] = joint_info [ 0 ]
Generate a dictionary matching the names of the urdf and the indices of the pybullet simulation
Generate a dictionary matching the names of the urdf and the indices of the pybullet simulation
"""
        Generate a dictionary matching the names of the urdf and the indices of the pybullet simulation
        """
self