Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_bno055_imu_driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
ros
sensors
imu
iri_bno055_imu_driver
Commits
47c88940
Commit
47c88940
authored
5 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Added a new parameter to select the operational mode of the sensor.
parent
089d0fd9
No related branches found
No related tags found
1 merge request
!1
Kinetic migration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cfg/Bno055Imu.cfg
+18
-2
18 additions, 2 deletions
cfg/Bno055Imu.cfg
with
18 additions
and
2 deletions
cfg/Bno055Imu.cfg
+
18
−
2
View file @
47c88940
...
@@ -38,12 +38,28 @@ from dynamic_reconfigure.parameter_generator_catkin import *
...
@@ -38,12 +38,28 @@ from dynamic_reconfigure.parameter_generator_catkin import *
gen
= ParameterGenerator()
gen
= ParameterGenerator()
enum_operation_mode
= gen.enum([
gen.const("accel_only",
int_t, 1, "Only enable the accelerometer"),
gen.const("mag_only",
int_t, 2, "Only enable the magnetometer"),
gen.const("gyro_only",
int_t, 3, "Only enable the gyroscope"),
gen.const("accel_mag",
int_t, 4, "Enable both accelerometer and magnetometer"),
gen.const("accel_gyro",
int_t, 5, "Enable both accelerometer and gyroscope"),
gen.const("mag_gyro",
int_t, 6, "Enable both magnetometer and gyroscope"),
gen.const("accel_mag_gyro",
int_t, 7, "Enable all sensors"),
gen.const("imu",
int_t, 8, "IMU"),
gen.const("compass",
int_t, 9, "Compass"),
gen.const("m4g",
int_t, 10, "M4G"),
gen.const("ndof_off",
int_t, 11, "ndof off"),
gen.const("ndof",
int_t, 12, "ndof")
],
"Possible operation mo
des
.")
# Name
Type Reconfiguration level Description Default Min Max
# Name
Type Reconfiguration level Description Default Min Max
gen.add("update_rate",
double_t, SensorLevels.RECONFIGURE_
STOP
, "Data update rate in Hz", 20.0, 1.0, 100.0)
gen.add("update_rate",
double_t, SensorLevels.RECONFIGURE_
CLOSE
, "Data update rate in Hz", 20.0, 1.0, 100.0)
gen.add("serial_device",
str_t, SensorLevels.RECONFIGURE_
STOP,
"Device serial port", "/dev/ttyUSB
0
")
gen.add("serial_device",
str_t, SensorLevels.RECONFIGURE_
CLOSE,
"Device serial port", "/dev/ttyUSB
1
")
gen.add("cal_filename",
str_t, SensorLevels.RECONFIGURE_STOP, "Sensor calibration data", "")
gen.add("cal_filename",
str_t, SensorLevels.RECONFIGURE_STOP, "Sensor calibration data", "")
gen.add("tf_prefix",
str_t, SensorLevels.RECONFIGURE_STOP, "TF prefix", "")
gen.add("tf_prefix",
str_t, SensorLevels.RECONFIGURE_STOP, "TF prefix", "")
gen.add("frame_id",
str_t, SensorLevels.RECONFIGURE_STOP, "IMU frame_id in the urdf file", "")
gen.add("frame_id",
str_t, SensorLevels.RECONFIGURE_STOP, "IMU frame_id in the urdf file", "")
gen.add("mode",
int_t, SensorLevels.RECONFIGURE_CLOSE, "Operation mode", 12, 1, 12, edit_method=enum_operation_mode)
#gen.add("velocity_scale_factor",
double_t, SensorLevels.RECONFIGURE_STOP, "Maximum velocity scale factor", 0.5, 0.0, 1.0)
#gen.add("velocity_scale_factor",
double_t, SensorLevels.RECONFIGURE_STOP, "Maximum velocity scale factor", 0.5, 0.0, 1.0)
exit(gen.generate(PACKAGE,
"Bno055ImuDriver", "Bno055Imu"))
exit(gen.generate(PACKAGE,
"Bno055ImuDriver", "Bno055Imu"))
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