Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix: 更改内容如下:
Browse files Browse the repository at this point in the history
	1.目录结构整理

	2.aubo_driver文件部署自动化脚本添加

	3.示例程序依赖目录更改为~/.aubo下

   	4.rebase整理commit
  • Loading branch information
zhaoyuRobotics committed Feb 25, 2021
1 parent 26e883c commit c322d8a
Show file tree
Hide file tree
Showing 92 changed files with 80 additions and 63 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
*.a
*.la
*.lai
#*.so
*.so
*.dll
*.dylib


# Qt-es

object_script.*.Release
Expand Down Expand Up @@ -60,5 +61,8 @@ data_model_test
feature_contribution_model_test


#file
*.zip



12 changes: 12 additions & 0 deletions demo/00_motion_by_aubocontrolbox/motion_by_aubocontrolbox.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

HOME_DIR = $$system(echo $HOME)

INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl

SOURCES += \
main.cpp
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions utils/01_rtde/rtde.pro → demo/01_rtde/rtde.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

INCLUDEPATH += /usr/arcs/include
LIBS += -L/usr/arcs/lib -laubo_driver -lpthread -ldl
HOME_DIR = $$system(echo $HOME)

INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl

HEADERS += trajectory_io.h

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions demo/02_script_run/scriptrun.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

HOME_DIR = $$system(echo $HOME)

INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl

SOURCES += \
main.cpp
3 changes: 3 additions & 0 deletions utils/03_robot_math/main.cpp → demo/03_robot_math/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
#include <aubo_driver/aubo_driver.h>
#include <string.h>

#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif

using namespace arcs::aubo_driver;

int main(int argc, char *argv[])
Expand Down
12 changes: 12 additions & 0 deletions demo/03_robot_math/robotmath.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

HOME_DIR = $$system(echo $HOME)

INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl

SOURCES += \
main.cpp
12 changes: 6 additions & 6 deletions doc/auboserver_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## 1\. 升级控制器程序

```bash
```
# 启动,建议使用最新版本
cd aubo_server
chmod a+x ./auboControllerServer*
Expand All @@ -14,7 +14,7 @@ sudo ./auboControllerServer*

## 2\. 升级接口板固件

```bash
```
# 切换到固件升级目录
cd robot_controller_install_4.10.0/auboFirmware
# 手动升级接口板Master固件
Expand All @@ -30,7 +30,7 @@ cd robot_controller_install_4.10.0/auboFirmware

## 3\. `AuboScope`示教器程序

```bash
```
cd release/aubo_scope
chmod a+x ./aubo_scope*
./aubo_scope*
Expand All @@ -52,10 +52,10 @@ chmod a+x ./aubo_scope*

将 aubo-driver_?.?.?.zip 下载到release/aubo_driver目录下

```bash
```
cd release/aubo_driver
chmod u+x unzip.sh
sudo ./unzip.sh aubo-driver_?.?.?.zip
chmod u+x deploy.sh
sudo ./deploy.sh aubo-driver_?.?.?.zip
```

Expand Down
28 changes: 14 additions & 14 deletions release/aubo_driver/unzip.sh → release/aubo_driver/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@ fi
cd $File_DIR

#删除旧头文件和库文件(链接符)
if [ -L "/usr/arcs/lib/libaubo_driver*" ];then
sudo rm /usr/arcs/lib/libaubo_driver*
if [ -h "${HOME}/.aubo/lib/libaubo_driver*" ];then
rm ${HOME}/.aubo/lib/libaubo_driver*
else
if [ ! -d "/usr/arcs/" ];then
sudo mkdir /usr/arcs/
if [ ! -d "${HOME}/aubo/" ];then
mkdir ${HOME}/.aubo/
fi
if [ ! -d "/usr/arcs/lib" ];then
sudo mkdir /usr/arcs/lib
if [ ! -d "${HOME}/aubo/lib/" ];then
mkdir ${HOME}/.aubo/lib/
fi
fi

if [ -d "/usr/arcs/include/aubo_driver/" ];then
sudo rm -rf /usr/arcs/include/aubo_driver
if [ -d "${HOME}/aubo/include/aubo_driver/" ];then
rm -rf ${HOME}/.aubo/include/aubo_driver/
else
if [ ! -d "/usr/arcs/" ];then
sudo mkdir /usr/arcs/
if [ ! -d "${HOME}/aubo/" ];then
mkdir ${HOME}/.aubo/
fi
if [ ! -d "/usr/arcs/include" ];then
sudo mkdir /usr/arcs/include
if [ ! -d "${HOME}/.aubo/include/" ];then
mkdir ${HOME}/.aubo/include/
fi
fi


#拷贝新头文件和库文件
sudo cp $PWD/lib/libaubo_driver* /usr/arcs/lib/
sudo cp -rf $PWD/include/aubo_driver/ /usr/arcs/include/
cp -d $PWD/lib/libaubo_driver* ${HOME}/.aubo/lib/
cp -rf $PWD/include/aubo_driver/ ${HOME}/.aubo/include/

echo "install successful!"
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions utils/04_Drag/Drag.pro → utils/00_Drag/Drag.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ CONFIG -= app_bundle
CONFIG -= qt

QMAKE_CXXFLAGS += $$system(pkg-config --cflags eigen3)
INCLUDEPATH += /usr/arcs/include
LIBS += -L/usr/arcs/lib -laubo_driver
HOME_DIR = $$system(echo $HOME)
INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl
LIBS += -lpthread
LIBS += $$PWD/libGravity.so $$PWD/lib_Matrix.so $$PWD/libImpendance.so
SOURCES += \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions utils/00_motion_by_aubocontrolbox/motion_by_aubocontrolbox.pro

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ CONFIG -= qt
TARGET = record
QMAKE_CXXFLAGS += $$system(pkg-config --cflags eigen3)

INCLUDEPATH += /usr/arcs/include
LIBS += -L/usr/arcs/lib -laubo_driver -lpthread
HOME_DIR = $$system(echo $HOME)
INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl
LIBS += $$PWD/libGravity.so $$PWD/lib_Matrix.so

INCLUDEPATH +=
Expand Down
File renamed without changes.
10 changes: 0 additions & 10 deletions utils/02_script_run/scriptrun.pro

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ CONFIG -= app_bundle
CONFIG -= qt
TARGET = play_traj

INCLUDEPATH += /usr/arcs/include
LIBS += -L/usr/arcs/lib -laubo_driver -lpthread
HOME_DIR = $$system(echo $HOME)
INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl

INCLUDEPATH +=
SOURCES += \
$$PWD/main.cpp \
$$PWD/trajectory_io.cpp
Expand Down
11 changes: 0 additions & 11 deletions utils/03_robot_math/robotmath.pro

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ CONFIG -= app_bundle
CONFIG -= qt
TARGET = record

INCLUDEPATH += /usr/arcs/include
LIBS += -L/usr/arcs/lib -laubo_driver -lpthread
HOME_DIR = $$system(echo $HOME)
INCLUDEPATH += $$HOME_DIR/.aubo/include
LIBS += -L$$HOME_DIR/.aubo/lib -laubo_driver -lpthread -ldl

INCLUDEPATH +=
SOURCES += \
Expand Down

0 comments on commit c322d8a

Please sign in to comment.