The package requires QtSerialPort development package from Qt 5.2+
sudo apt-get install libqt5serialport5-dev
cd catkin_ws/src
git clone https://github.com/Lab-of-AI-and-Robotics/witmotion_driver
catkin_make
- default settings
roslaunch witmotion_ros witmotion.launch
- Our model (bt 901cl)
roslaunch witmotion_ros lair.launch
port
- the virtual kernel device name for a port,ttyUSB0
by defaultbaud_rate
- port rate value to be used by the library for opening the port, 9600 baud by defaultpolling_interval
- the sensor polling interval in milliseconds. If this parameter is omitted, the default value is set up by the library (50 ms).timeout_ms
- the sensor timeout period in milliseconds. If no data is received from the sensor after this period, then an error is raised and the node terminates. If this parameter is omitted, a default value of 3 times the polling interval is used. If this parameter is zero, the timeout check is disabled.restart_service_name
- the service name used to restart the sensor connection after an error.imu_publisher:
topic_name
- the topic name for IMU data publisher,imu
in the node's namespace by defaultframe_id
- IMU message header frame IDuse_native_orientation
- instructs the node to use the native quaternion orientation measurement from the sensor instead of synthesized from Euler angles. NOTE: if this setting is enabled bu the sensor does not produce orientation in the quaternion format, the IMU message will never be published!measurements
- every measurement in IMU message data pack can be enabled or disabled. If the measurement is disabled, the corresponding covariance matrix is set to begin from-1
as it is described in the message definition.acceleration
enabled
covariance
- row-major matrix 3x3, all zeros for unknown covariation
angular_velocity
enabled
covariance
- row-major matrix 3x3, all zeros for unknown covariation
orientation
enabled
covariance
- row-major matrix 3x3, all zeros for unknown covariation
temperature_publisher
enabled
- enable or disable temperature measurement extractiontopic_name
- the topic name for publishing temperature dataframe_id
- message header frame IDfrom_message
- the message type string to determine from which type of Witmotion measurement message the temperature data should be extracted (please refer to the original documentation for detailed description). The possible values are:acceleration
,angular_vel
,orientation
ormagnetometer
.variance
- the constant variance, if applicable, otherwise 0coefficient
- linear calibration multiplier, 1.0 by defaultaddition
- linear calibration addendum, 0 by default
magnetometer_publisher
enabled
- enable or disable magnetometer measurement extractiontopic_name
- the topic name for publishing the dataframe_id
- message header frame IDcoefficient
- linear calibration multiplier, 1.0 by defaultaddition
- linear calibration addendum, 0 by defaultcovariance
- row-major matrix 3x3, all zeros for unknown covariation
barometer_publisher
enabled
- enable or disable barometer measurement extractiontopic_name
- the topic name for publishing the dataframe_id
- message header frame IDcoefficient
- linear calibration multiplier, 1.0 by defaultaddition
- linear calibration addendum, 0 by defaultvariance
- the constant variance, if applicable, otherwise 0
altimeter_publisher
enabled
- enable or disable altitude measurement extractiontopic_name
- the topic name for publishing the datacoefficient
- linear calibration multiplier, 1.0 by defaultaddition
- linear calibration addendum, 0 by default
orientation_publisher
enabled
- enable or disable orientation measurement extractiontopic_name
- the topic name for publishing the data
gps_publisher
enabled
- enables/disables all GPS receiver measurements extractionnavsat_fix_frame_id
- frame ID for GPS fixed position publishernavsat_fix_topic_name
- topic name for GPS fixed position publishernavsat_altitude_topic_name
- topic name for GPS altitude publishernavsat_satellites_topic_name
- topic name for GPS active satellites number publishernavsat_variance_topic_name
- topic name for GPS diagonal variance publisherground_speed_topic_name
- topic name for GPS ground speed publisher
rtc_publisher
enabled
- enables/disables realtime clock information decodertopic_name
- topic name for realtime clock publisherpresync
- instructs the node to perform an attempt to pre-synchronize sensor's internal realtime clock