Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bno055_imu_driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
drivers
bno055_imu_driver
Commits
17b62179
Commit
17b62179
authored
2 years ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Update packaging
parent
73cf94ac
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+8
-32
8 additions, 32 deletions
.gitlab-ci.yml
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
src/examples/bno055_imu_driver_test.cpp
+2
-2
2 additions, 2 deletions
src/examples/bno055_imu_driver_test.cpp
with
11 additions
and
34 deletions
.gitlab-ci.yml
+
8
−
32
View file @
17b62179
image
:
docker.io/labrobotica/labrobotica:
latest
image
:
docker.io/labrobotica/labrobotica:
18.04
stages
:
-
build
-
test
-
deploy
build-package
:
stage
:
build
script
:
-
apt update || apt -y install ca-certificates && apt update
# Uncomment to install dependencies
# - apt -y install iri-<package_name>-dev
-
apt -y install iri-iriutils-dev iri-comm-dev
-
mkdir -pv build
-
cd build
-
cmake -D CMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG ..
-
make package -j $(nproc)
artifacts
:
paths
:
-
build/*.deb
expire_in
:
2 weeks
only
:
-
tags
update_repo
:
stage
:
deploy
script
:
-
cd build
-
"
scp
-i
/root/.ssh/iriLabKeyNopwd
-r
*bno055-imu-driver*.deb
irilabo@labrepo.iri.upc.edu:packages/"
-
"
ssh
irilabo@labrepo.iri.upc.edu
-i
/root/.ssh/iriLabKeyNopwd
-tt
/home/irilabo/repo_scripts/update_repo.sh
bno055-imu-driver
$(lsb_release
-cs)"
only
:
-
tags
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
FROM_RDEPENDS_CI
:
"
false"
TAG_VERSION
:
$CI_COMMIT_TAG
PACKAGE_NAME
:
"
bno055-imu-driver"
include
:
remote
:
'
https://gitlab.iri.upc.edu/labrobotica/packaging_ci/-/raw/master/packaging-ci.yml'
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
1
−
0
View file @
17b62179
...
...
@@ -84,6 +84,7 @@ IF (UNIX)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX /usr
)
SET
(
CPACK_GENERATOR
"DEB"
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"labrobotica - labrobotica@iri.upc.edu"
)
SET
(
CPACK_DEBIAN_PACKAGE_HOMEPAGE
"https://gitlab.iri.upc.edu/labrobotica/drivers/bno055_imu_driver"
)
# Uncomment to add the necessary mantainer scripts
SET
(
CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"
${
CMAKE_SOURCE_DIR
}
/scripts/debian/postinst;
${
CMAKE_SOURCE_DIR
}
/scripts/debian/prerm"
)
...
...
This diff is collapsed.
Click to expand it.
src/examples/bno055_imu_driver_test.cpp
+
2
−
2
View file @
17b62179
...
...
@@ -10,12 +10,12 @@ int main(int argc, char *argv[])
bool
accel_cal
,
mag_cal
,
gyro_cal
;
CEventServer
*
event_server
=
CEventServer
::
instance
();
std
::
list
<
std
::
string
>
events
;
CBNO055IMUDriver
imu
(
"
darwin
_imu"
);
CBNO055IMUDriver
imu
(
"
bno055
_imu"
);
std
::
vector
<
double
>
accel
,
mag
,
gyro
;
std
::
vector
<
double
>
quat
,
euler
,
linear_acc
,
gravity
;
unsigned
int
i
;
imu
.
open
(
"/dev/ttyUSB
2
"
);
imu
.
open
(
"/dev/ttyUSB
0
"
);
try
{
imu
.
load_calibration
(
"bno055.cal"
);
imu
.
set_operation_mode
(
ndof_mode
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment