コード例 #1
0
 def _get_requested_type(self) -> ObjectType:
     return ObjectType(sim.simGetObjectType(self.get_handle()))
コード例 #2
0
ファイル: object.py プロジェクト: fedor-chervinskii/PyRep
    def get_object_type(name: str) -> ObjectType:
        """Gets the type of the object.

        :return: Type of the object.
        """
        return ObjectType(sim.simGetObjectType(sim.simGetObjectHandle(name)))
コード例 #3
0
ファイル: object.py プロジェクト: fedor-chervinskii/PyRep
    def get_type(self) -> ObjectType:
        """Gets the type of the object.

        :return: Type of the object.
        """
        return ObjectType(sim.simGetObjectType(self._handle))
コード例 #4
0
    def _get_requested_type(self) -> ObjectType:
        """Gets the type of the object.

        :return: Type of the object.
        """
        return ObjectType(sim.simGetObjectType(self.get_handle()))