MATLAB中GUI和Class类如何统一使用(探索记录)

1、前言:回校三天了,论文写了小半但实验还跟不上进度,最后冲刺阶段还要来学习探索下怎么编写一个GUI将所有的工作使用交互界面来简单的统一起来。

论文包括的工作大概如下:(1)通过MATLAB端的class通信协议控制Baxter机器人

                                           (2)GUI与simulink联调

                                           (3)stateflow构建的简单碰撞检测模型,包括进入零力模型的拖动示教与示教再现

                                           (4)单目视觉获得障碍物空间信息(未做)

                                           (5)避障路径算法(简单实现)

       为了更好的演示,过滤掉执行不同任务时需要启动不同程序目录的麻烦操作,设计出一个GUI来完成所有的功能有些必要。当然这只是目前状态下的想要的尝试(可能实现不了)。其中最早遇到的问题就是MATLAB可以通过class写的通信协议控制Baxter,但在GUI中如何使用写好的class类中的属性呢?

以下为探索记录....

2、探索当然搜索别人是否有过类似的想法:(From MATLAB Central Answers)

来源:https://www.mathworks.com/matlabcentral/answers/272689-reference-dependent-property-of-object-within-matlab-gui-code

https://www.mathworks.com/matlabcentral/answers/297020-problems-creating-a-simple-oo-gui-in-matlab

https://www.mathworks.com/matlabcentral/answers/311815-ui-control-callback-function-problem?s_tid=answers_rc1-2_p2_BOTH

https://www.mathworks.com/help/matlab/creating_guis/share-data-among-callbacks.html#bt9p4qp

https://www.mathworks.com/matlabcentral/answers/195066-calling-a-class-method-from-a-gui

https://www.mathworks.com/matlabcentral/fileexchange/33816-example-using-a-matlab-class-to-control-a-gui?s_tid=answers_rc2-1_p4_Topic

https://www.mathworks.com/matlabcentral/answers/51992-how-can-i-make-window-to-be-fullscreen-and-resizable-in-matlab-gui

https://www.mathworks.com/matlabcentral/answers/319966-how-can-my-app-inherit-from-my-classes

https://www.mathworks.com/matlabcentral/answers/40844-gui-handles-in-classes-problem

(以上为相关问题的链接,后续更新)

猜你喜欢

转载自blog.csdn.net/weixin_39090239/article/details/100374693