Skip to content

Commit

Permalink
ign
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM committed Jan 15, 2025
1 parent a3f0c77 commit 3a9d095
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kos_sim/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, simulator: MujocoSimulator, step_controller: StepController)
self.simulator = simulator
self.step_controller = step_controller

def Reset(
def Reset( # noqa: N802
self, request: sim_pb2.ResetRequest, context: grpc.ServicerContext
) -> common_pb2.ActionResponse: # noqa: N802
"""Reset the simulation to initial or specified state."""
Expand All @@ -38,7 +38,7 @@ def Reset(
context.set_details(str(e))
return common_pb2.ActionResponse(success=False, error=str(e))

def SetPaused(
def SetPaused( # noqa: N802
self, request: sim_pb2.SetPausedRequest, context: grpc.ServicerContext
) -> common_pb2.ActionResponse: # noqa: N802
"""Pause or unpause the simulation."""
Expand All @@ -52,7 +52,7 @@ def SetPaused(
context.set_details(str(e))
return common_pb2.ActionResponse(success=False, error=str(e))

def Step(
def Step( # noqa: N802
self, request: sim_pb2.StepRequest, context: grpc.ServicerContext
) -> common_pb2.ActionResponse: # noqa: N802
"""Step the simulation forward."""
Expand Down Expand Up @@ -102,9 +102,9 @@ def SetParameters( # noqa: N802
context.set_details(str(e))
return common_pb2.ActionResponse(success=False, error=str(e))

def GetParameters(
def GetParameters( # noqa: N802
self, request: empty_pb2.Empty, context: grpc.ServicerContext
) -> sim_pb2.GetParametersResponse: # noqa: N802
) -> sim_pb2.GetParametersResponse:
"""Get current simulation parameters."""
logger.info("GetParameters request received")
try:
Expand Down

0 comments on commit 3a9d095

Please sign in to comment.