Robot Reference Interface (RRI)
kro266
✭
Hello,
I'm trying to use RRI to get position robot
I have put the three xml files in the correct folders.
My server is listening on the port I have defined on Description.xml.
I try my server with a simple client application and it works.
When i launch the robot application no error is written.
But my server received nothing. If someone could help me.
Settings.xml in HOME/GSI
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<Clients>
<Client Convention="CDP" Name="PosRobot"/>
</Clients>
</Settings>
Descrition.xml in GSI/PosRobot
<?xml version="1.0" encoding="utf-8"?>
<Description>
<Name>PosRobot</Name>
<Convention>CDP</Convention>
<Type>AType</Type>
<Class>AClass</Class>
<Network Address="127.0.0.1" Port="Lan">
<Channel Type="Cyclic" Protocol="Udp" Port="1069" />
</Network>
<Settings>
<TimeOut>2000</TimeOut>
<MaxLost>30</MaxLost>
<DryRun>false</DryRun>
</Settings>
</Description>
Configuration.xml in GSI/PosRobot
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<Enums>
<Enum Name="opmode" Link="Intern">
<Member Name="ReducedSpeed" />
<Member Name="FullSpeed" />
<Member Name="Automatic" />
</Enum>
</Enums>
<Records>
<Record Name="robotdata">
<Field Name="type" Type="Real" Alias="Type" />
<Field Name="status" Type="String" Alias="Status" />
<Field Name="OperationMode" Type="opmode" Link="Intern" Alias="Mode" />
<Field Name="PredictedTime" Type="Time" Link="Intern" Alias="Time" />
<Field Name="PlannedPose" Type="Frame" Link="Intern" Alias="Frame" />
<Field Name="PlannedJoints" Type="Joints" Link="Intern" Alias="Joints" />
<Field Name="FeedbackTime" Type="Time" Link="Intern" Alias="FTime" />
<Field Name="FeedbackPose" Type="Frame" Link="Intern" Alias="FFrame" />
<Field Name="FeedbackJoints" Type="Joints" Link="Intern" Alias="FJoints" />
</Record>
<Record Name="replydata">
<Field Name="type" Type="Real" Alias="Type" />
</Record>
</Records>
<Properties>
<Property Name="RobotMessage" Type="robotdata" Flag="WriteOnly" />
<Property Name="ReplyMessage" Type="replydata" Flag="ReadOnly" />
</Properties>
</Configuration>
Main Module
SiConnect PosRobot;
SiSetCyclic PosRobot, RobotMessage,1000;
SiClose PosRobot
I'm trying to use RRI to get position robot
I have put the three xml files in the correct folders.
My server is listening on the port I have defined on Description.xml.
I try my server with a simple client application and it works.
When i launch the robot application no error is written.
But my server received nothing. If someone could help me.
Settings.xml in HOME/GSI
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<Clients>
<Client Convention="CDP" Name="PosRobot"/>
</Clients>
</Settings>
Descrition.xml in GSI/PosRobot
<?xml version="1.0" encoding="utf-8"?>
<Description>
<Name>PosRobot</Name>
<Convention>CDP</Convention>
<Type>AType</Type>
<Class>AClass</Class>
<Network Address="127.0.0.1" Port="Lan">
<Channel Type="Cyclic" Protocol="Udp" Port="1069" />
</Network>
<Settings>
<TimeOut>2000</TimeOut>
<MaxLost>30</MaxLost>
<DryRun>false</DryRun>
</Settings>
</Description>
Configuration.xml in GSI/PosRobot
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<Enums>
<Enum Name="opmode" Link="Intern">
<Member Name="ReducedSpeed" />
<Member Name="FullSpeed" />
<Member Name="Automatic" />
</Enum>
</Enums>
<Records>
<Record Name="robotdata">
<Field Name="type" Type="Real" Alias="Type" />
<Field Name="status" Type="String" Alias="Status" />
<Field Name="OperationMode" Type="opmode" Link="Intern" Alias="Mode" />
<Field Name="PredictedTime" Type="Time" Link="Intern" Alias="Time" />
<Field Name="PlannedPose" Type="Frame" Link="Intern" Alias="Frame" />
<Field Name="PlannedJoints" Type="Joints" Link="Intern" Alias="Joints" />
<Field Name="FeedbackTime" Type="Time" Link="Intern" Alias="FTime" />
<Field Name="FeedbackPose" Type="Frame" Link="Intern" Alias="FFrame" />
<Field Name="FeedbackJoints" Type="Joints" Link="Intern" Alias="FJoints" />
</Record>
<Record Name="replydata">
<Field Name="type" Type="Real" Alias="Type" />
</Record>
</Records>
<Properties>
<Property Name="RobotMessage" Type="robotdata" Flag="WriteOnly" />
<Property Name="ReplyMessage" Type="replydata" Flag="ReadOnly" />
</Properties>
</Configuration>
Main Module
SiConnect PosRobot;
SiSetCyclic PosRobot, RobotMessage,1000;
SiClose PosRobot
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings