Microsoft Robotics Developer Studio创建service

本文详细介绍了如何使用Microsoft Robotics Developer Studio (MSRS) 创建服务。包括打开MSRS命令提示符、新建服务、添加引用和命名空间,以及设置操作端口等步骤。

Microsoft Robotics Developer Studio创建service

1.       打开 Microsoft Robotics Studio Command Prompt(开始->所有程序->Microsoft Robotics Dev Studio 2008->DSS Command Prompt:

dssnewservice /service:DialogDrive

 

2.       Partner with your mobile Robot

²  添加需要的Reference :

例如:RoboticsCommon.Proxy.dllDirectionDialog.Y2006.M08.proxy.dll

²  添加namespace

using dialog = Microsoft.Robotics.Services.Sample.DirectionDialog.Proxy;

using drive = Microsoft.Robotics.Services.Drive.Proxy;

3.       Set up Operation Ports for the dialog and drive services.

[Partner("dialog", Contract = dialog.Contract.Identifier,

    CreationPolicy = PartnerCreationPolicy.CreateAlways)]

Private dialog.DirectionDialogOperations _dialogPort = new dialog.DirectionDialogOperations();

 

[Partner("drive", Contract = drive.Contract.Identifier,

    CreationPolicy = PartnerCreationPolicy.UseExisting)]

private drive.DriveOperations _drivePort = new drive.DriveOperations();

4.       编程

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值