net_lib 2.0.4
 
Loading...
Searching...
No Matches
nrc_c_queue_operate.h File Reference

Go to the source code of this file.

Functions

EXPORT_API int queue_motion_set_status_c (SOCKETFD socketFd, bool status)
 打开or关闭控制器的队列运动模式
 
EXPORT_API int queue_motion_send_to_controller_c (SOCKETFD socketFd, int size)
 将本地队列的前size个数据发送到控制器
 
EXPORT_API int queue_motion_suspend_c (SOCKETFD socketFd)
 暂停连续运动
 
EXPORT_API int queue_motion_restart_c (SOCKETFD socketFd)
 暂停后再次运行运动队列
 
EXPORT_API int queue_motion_stop_not_power_off_c (SOCKETFD socketFd)
 停止连续运动保持上电状态
 
EXPORT_API int queue_motion_push_back_moveJ_c (SOCKETFD socketFd, int coord, double vel, double acc, double dec, double *targetPos)
 队列运动模式的本地队列最后插入一条moveJ运动
 
EXPORT_API int queue_motion_push_back_moveL_c (SOCKETFD socketFd, int coord, double vel, double acc, double dec, double *targetPos)
 队列运动模式的本地队列最后插入一条moveL运动
 
EXPORT_API int queue_motion_push_back_dout_c (SOCKETFD socketFd, int port, bool value)
 队列运动模式的本地队列最后插入一条DOUT指令
 

Function Documentation

◆ queue_motion_push_back_dout_c()

EXPORT_API int queue_motion_push_back_dout_c ( SOCKETFD socketFd,
int port,
bool value )

队列运动模式的本地队列最后插入一条DOUT指令

Parameters
port端口
value

◆ queue_motion_push_back_moveJ_c()

EXPORT_API int queue_motion_push_back_moveJ_c ( SOCKETFD socketFd,
int coord,
double vel,
double acc,
double dec,
double * targetPos )

队列运动模式的本地队列最后插入一条moveJ运动

Parameters
moveCmdtargetPos 目标点坐标 长度7位 velocity 参数范围(1,100] 度/s acc,dec 参数范围(1,100] pl 多条轨迹之间平滑参数 参数范围[0,5]

◆ queue_motion_push_back_moveL_c()

EXPORT_API int queue_motion_push_back_moveL_c ( SOCKETFD socketFd,
int coord,
double vel,
double acc,
double dec,
double * targetPos )

队列运动模式的本地队列最后插入一条moveL运动

Parameters
targetPos目标点坐标 长度7位
velocity参数范围(1,1000] mm/s
acc,dec参数范围(1,100]
pl多条轨迹之间平滑参数 参数范围[0,5]

◆ queue_motion_restart_c()

EXPORT_API int queue_motion_restart_c ( SOCKETFD socketFd)

暂停后再次运行运动队列

◆ queue_motion_send_to_controller_c()

EXPORT_API int queue_motion_send_to_controller_c ( SOCKETFD socketFd,
int size )

将本地队列的前size个数据发送到控制器

Parameters
size要发送的队列大小
Returns
0-成功 -1-失败 -2-未连接机器人 -3-传入的size超过队列长度
Warning
控制器接受到队列后,将会立马开始运动。调用前请先调用queue_motion_set_status(true);

◆ queue_motion_set_status_c()

EXPORT_API int queue_motion_set_status_c ( SOCKETFD socketFd,
bool status )

打开or关闭控制器的队列运动模式

Parameters
status0-关闭 1-打开
Returns
0-成功 -1-失败 -2-未连接机器人
Warning
无论是打开还是关闭,都将清空远端控制器已经存储的队列

◆ queue_motion_stop_not_power_off_c()

EXPORT_API int queue_motion_stop_not_power_off_c ( SOCKETFD socketFd)

停止连续运动保持上电状态

◆ queue_motion_suspend_c()

EXPORT_API int queue_motion_suspend_c ( SOCKETFD socketFd)

暂停连续运动