controller
robot_teach_interface.h
浏览该文件的文档.
1 
11 #ifndef ROBOT_TEACH_INTERFACE_H_
12 #define ROBOT_TEACH_INTERFACE_H_
13 
14 
15 
16 #ifdef __cplusplus
17 namespace HYYRobotBase
18 {
19 extern "C" {
20 #endif
21 
22 //----------------------------数据操作接口见robotStruct.h--------------------------
23 
24 
25 //-------------------------------------------------------------------------------
32 int set_robot_index(int robot_index);
33 
40 
47 int set_robot_tool(const char* tool_name);
48 
54 const char* get_robot_tool();
55 
62 int set_robot_wobj(const char* wobj_name);
63 
69 const char* get_robot_wobj();
70 
78 
85 
92 
99 
106 int get_robot_joint(double* joint);
107 
114 int get_robot_cartesian(double* cartesin);
115 
121 void set_robot_teach_velocity(double vel_percent);
122 
129 
135 void set_robot_run_type(int isSimulation);
136 
143 
150 
157 int create_robot_torque_sensor(const char* torqueSensorName);
158 
165 int calibration_robot_torque_sensor(const char* torqueSensorName);
166 
174 int get_robot_torque_sensor(const char* torqueSensorName, double* torque);
175 
183 int get_robot_torque_sensor_transform(const char* torqueSensorName, double* torque);
184 
191 int create_robot_grip(const char* gripName);
192 
200 int control_robot_grip(const char* gripName, double close_percent);
201 
207 
214 int start_robot_project(const char* project_name);
215 
222 
229 int start_robot_c_project(const char* project_name);
230 
237 
244 int start_robot_lua_project(const char* project_name);
245 
252 
259 int save_robot_current_joint_data(const char* data_name);
260 
267 int save_robot_current_cartesian_data(const char* data_name);
268 
275 int set_robot_data_path(const char* path);
276 
283 
289 const char* get_robot_data_path();
290 
300 int robot_direct_teach_start(double inertia, double damping, int* teach_axis, int is_tool_ctrl);
301 
308 
309 //----------------------------------------------------运动相关接口---------------------------
310 
317 
324 
331 
338 
346 int robot_goto(double* J, int dof);
347 
355 int robot_teach_joint(int axis_index, int dir);
356 
364 int robot_teach_cartesian(int axis_index,int dir);
365 
373 int robot_teach_move(int axis_index,int dir);
374 
375 #ifdef __cplusplus
376 }
377 }
378 #endif
379 
380 
381 #endif /* ROBOT_TEACH_INTERFACE_H_ */
get_robot_torque_sensor
int get_robot_torque_sensor(const char *torqueSensorName, double *torque)
获取末端六维力传感器数据
robot_home
int robot_home()
当前操作机器人回零运动
set_robot_wobj
int set_robot_wobj(const char *wobj_name)
设置当前操作机器人工具
set_robot_data_path
int set_robot_data_path(const char *path)
设置机器人系统使用的数据所在路径
robot_teach_joint
int robot_teach_joint(int axis_index, int dir)
在关节空间示教当前操作机器人
get_robot_index
int get_robot_index()
获取当前操作机器人索引
get_robot_tool
const char * get_robot_tool()
获取当前操作机器人工具
get_robot_run_type
int get_robot_run_type()
获取当前操作机器人的运行方式
get_robot_num
int get_robot_num()
获取机器人数目
close_robot_c_project
int close_robot_c_project()
关闭机器人C项目
get_robot_cartesian
int get_robot_cartesian(double *cartesin)
获取当前操作机器人的笛卡尔位置
get_robot_torque_sensor_transform
int get_robot_torque_sensor_transform(const char *torqueSensorName, double *torque)
获取末端六维力传感器转换到工具数据
start_robot_lua_project
int start_robot_lua_project(const char *project_name)
启动机器人lua项目
set_robot_teach_coordinate
int set_robot_teach_coordinate(int frame)
设置当前操作机器人的坐标系
robot_teach_cartesian
int robot_teach_cartesian(int axis_index, int dir)
在笛卡尔空间示教当前操作机器人,运动相对坐标系包括:基座坐标系,工件坐标系,工具坐标系,由当前设置的坐标系决定。
get_robot_teach_velocity
double get_robot_teach_velocity()
获取当前操作机器人的示教速度
create_robot_torque_sensor
int create_robot_torque_sensor(const char *torqueSensorName)
创建末端六维力传感器
save_robot_current_joint_data
int save_robot_current_joint_data(const char *data_name)
保存当期操作机器人的当前关节数据
robot_goto
int robot_goto(double *J, int dof)
当前操作机器人运动到指定目标关节位置
set_robot_tool
int set_robot_tool(const char *tool_name)
设置当前操作机器人工具
create_robot_grip
int create_robot_grip(const char *gripName)
创建夹爪
get_robot_joint
int get_robot_joint(double *joint)
获取当前操作机器人的关节位置
set_robot_index
int set_robot_index(int robot_index)
设置要操作机器人的索引
robot_direct_teach_end
int robot_direct_teach_end()
关闭基于末端力矩传感器的拖动
set_robot_data_default_path
int set_robot_data_default_path()
设置机器人系统当前使用的数据所在路径为默认路径
set_robot_run_type
void set_robot_run_type(int isSimulation)
设置当前操作机器人的运行方式
robot_direct_teach_start
int robot_direct_teach_start(double inertia, double damping, int *teach_axis, int is_tool_ctrl)
启动基于末端力矩传感器的拖动
close_robot_lua_project
int close_robot_lua_project()
关闭机器人lua项目
calibration_robot_torque_sensor
int calibration_robot_torque_sensor(const char *torqueSensorName)
末端六维力传感器标定(仅需一次,永久生效)
robot_move_error_clear
void robot_move_error_clear()
清除当前操作机器人的错误运动状态
start_robot_project
int start_robot_project(const char *project_name)
启动机器人项目
get_robot_data_path
const char * get_robot_data_path()
获取机器人系统使用的数据所在路径
robot_teach_stop
int robot_teach_stop()
停止当前操作机器人的示教移动
get_robot_wobj
const char * get_robot_wobj()
获取当前操作机器人工件
set_robot_teach_velocity
void set_robot_teach_velocity(double vel_percent)
设置当前操作机器人的示教速度
get_robot_teach_coordinate
int get_robot_teach_coordinate()
获取当前操作机器人的坐标系
start_robot_c_project
int start_robot_c_project(const char *project_name)
启动机器人C项目
close_robot_project
int close_robot_project()
关闭机器人项目
robot_teach_enable
int robot_teach_enable()
使能当前操作机器人
robot_teach_move
int robot_teach_move(int axis_index, int dir)
示教当前操作机器人,运动相对坐标系包括:关节坐标系,基座坐标系,工件坐标系,工具坐标系,由当前设置的坐标系决定。
robot_teach_disenable
int robot_teach_disenable()
去使能当前操作机器人
control_robot_grip
int control_robot_grip(const char *gripName, double close_percent)
夹爪开合控制
save_robot_current_cartesian_data
int save_robot_current_cartesian_data(const char *data_name)
保存当期操作机器人的当前位置及姿态数据
get_robot_run_state
int get_robot_run_state()
获取当前操作机器人的运行状态
get_robot_dof
int get_robot_dof()
获取当前操作机器人的自由度