- 【弃用】百度api:
python版本2.7
pip install setuptools
cd ThirdParty/aip-python-sdk-4.15.13 && sudo python setup.py install
pip install requests pip install numpy==1.11.2 pandas==0.23.0 - yaml cpp
cd /ThirdParty/yaml-cpp
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install
-
安装 qt 5.12.4:
sudo apt-get install ros-kinetic-qt-* -
安装 qtcreator 4.4.1 和 qtcreator-ros-plugin: https://qtcreator-ros.datasys.swri.edu/downloads/installers/xenial/archived/ ubuntu16下建议下载qtcreator-ros-xenial-480-offline-installer.run
-
在qtcreator中导入ros workspace
https://blog.csdn.net/a347755140/article/details/117020994 -
rosqt的学习资料 官方:https://ros-qtc-plugin.readthedocs.io/en/latest/_source/How-to-Install-Users.html 中文:https://www.ncnynl.com/archives/201903/2865.html
-
可能缺少的依赖包: sudo apt-get install qtmultimedia5-dev sudo apt install libqt5svg5-dev
- 首先编译所需的msg文件 catkin_make -DCATKIN_WHITELIST_PACKAGES="social_msg"
- 编译其他package catkin_make -DCATKIN_WHITELIST_PACKAGES=""
-
情感模块 rosrun emotion_module main.py
-
需求模块 rosrun need_module need_model
-
行为模块
-
与安卓的蓝牙通信 rosrun robot_platform platform 1
-
qt可视化 roslaunch visualization visualization.launch
-
手动点击的仿真输入接口 roslaunch interface_sim interface_sim_cfg.launch
-
手动发布"机器人闲置状态"
- 发送“无后续行为”的闲置状态,从而使机器人在闲置30秒后,生成“无聊”的情绪。
rostopic pub /idleState social_msg/idleState "{idleState: true, hehavior_name: '', person_name: '', IDtype: '', target_angle: 0.0, target_distance: 0.0, person_emotion: '', satisfy_value: 0}"
- 发送“测温”行为结束的闲置状态,从而生成Pass放行的入校的需求,同时机器人会因为完成了”测温行为“而生成“高兴”的情绪。
rostopic pub /idleState social_msg/idleState "{idleState: false, hehavior_name: 'MeasureTempareture', person_name: 'xiaoming', IDtype: 'Student', target_angle: 0.0, target_distance: 0.0, person_emotion: 'happy', satisfy_value: 1}"