Skip to content

Commit 0c0db93

Browse files
committed
Add MobileBasePresenceService.
1 parent c2fa436 commit 0c0db93

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Packages/ReachySimulator/Scripts/JointServiceServer.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Reachy.Sdk.Joint;
1010
using Reachy.Sdk.Fan;
1111
using Reachy.Sdk.Kinematics;
12+
using Reachy.Sdk.Mobility;
1213
using System.Collections;
1314
using System.Collections.Generic;
1415
using System;
@@ -67,6 +68,7 @@ public static void gRPCServer()
6768
SensorService.BindService(new SensorServiceImpl()),
6869
FanControllerService.BindService(new FanControllerServiceImpl()),
6970
ArmKinematics.BindService(new ArmKinematicsImpl()),
71+
MobileBasePresenceService.BindService(new MobileBasePresenceServiceImpl()),
7072
},
7173
Ports = { new ServerPort("0.0.0.0", PortJoint, ServerCredentials.Insecure) },
7274
};
@@ -683,4 +685,16 @@ public override Task<FansCommandAck> SendFansCommands(FansCommand fansCommand, S
683685
}
684686
}
685687
}
688+
689+
public class MobileBasePresenceServiceImpl : MobileBasePresenceService.MobileBasePresenceServiceBase
690+
{
691+
public override Task<MobileBasePresence> GetMobileBasePresence(Google.Protobuf.WellKnownTypes.Empty empty, ServerCallContext context)
692+
{
693+
MobileBasePresence mobility = new MobileBasePresence {
694+
Presence = false,
695+
};
696+
697+
return Task.FromResult(mobility);
698+
}
699+
}
686700
}

0 commit comments

Comments
 (0)