The following warnings occurred:
Warning[2] session_start(): open(/opt/alt/php74/var/lib/php/session/sess_e71a1b5eda1119f55e98ccc11244c7e2, O_RDWR) failed: Disk quota exceeded (122) - Line: 402 - File: inc/plugins/myfbconnect.php PHP 7.4.33 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/myfbconnect.php 402 session_start
/inc/class_plugins.php 142 myfbconnect_global
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning[2] session_start(): Failed to read session data: files (path: /opt/alt/php74/var/lib/php/session) - Line: 402 - File: inc/plugins/myfbconnect.php PHP 7.4.33 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/myfbconnect.php 402 session_start
/inc/class_plugins.php 142 myfbconnect_global
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robot synchronization: run one instruction at a time in a robot program
#1
I am using C# but don't mind python solutions. In the RoboDK API, is it possible to run one instruction at a time within a robot problem (such as one created from a point follow project)? The purpose is to synchronize the movements of multiple robotic arms from a robot program generated from two point follow projects. The code looks something like this:

Code:
// Assume this running as a separate thread
void WorkRobots(string robotName)
{
// Create new reference to RDK for the thread
RoboDK _RDK = new RoboDK();

// Get the program "Point"
RoboDK.Item prog = RDK.getItem("Point");

// Get the robot used for the program, set the program to run on this robot
RoboDK.Item robot = _RDK.getItem(robotName);
prog.setRobot(robot);

/ /遍历所有的指令in the program
for (int ins_id = 0; ins_id < prog.InstructionCount(); ins_id++)
{
// Get the instruction
string insName;
int insType, moveType;
bool isJointTarget;
Mat pose;
double[] joints;
prog.Instruction(ins_id,
out insName,
out insType,
out moveType,
out isJointTarget,
out pose,
out joints);

// Run one instruction
prog.RunInstruction(ins_id, ???); // ??????? What to do here ????????

// Await the other threads to finish before next instruction
SyncWait();
} // end for loop
} // end function


Messages In This Thread
Robot synchronization: run one instruction at a time in a robot program - byCiaron Hamilton- 05-11-2020, 08:14 PM



Users browsing this thread:
1 Guest(s)