This node provides a system to detect and manage collisions using a [bno055 IMU](https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor).
This node also provides the following configuration files located in [config](./config) directory:
- ~**collision_acc_th** (Double; default: 9.8; min: 0.1; max: 160.0) Threshold to detect a collision.
- ~**collision_transition_counter_en** (Boolean; default: False) Enable the collision counter.
- ~**collision_counter_limit** (Integer; default: 6; min: 1; max: 30) Number of low acc imu meassures to detect an end of collision.
## Installation
## Installation
#### External dependencies
***bno055_imu_driver**: This is the [bno055 imu driver](https://gitlab.iri.upc.edu/labrobotica/drivers/bno055_imu_driver). To install it run the following commands:
***iri_base_algorithm**: Move to your active workspace, clone [this repository](https://gitlab.iri.upc.edu/labrobotica/ros/iri_core/iri_base_algorithm) and compile your workspace.
***iri_bno055_imu_driver**: Move to your active workspace, clone [this repository](https://gitlab.iri.upc.edu/labrobotica/ros/sensors/imu/iri_bno055_imu_driver) and compile your workspace.
***iri_bno055_imu_bringup**: Move to your active workspace, clone [this repository](https://gitlab.iri.upc.edu/labrobotica/ros/sensors/imu/iri_bno055_imu_bringup) and compile your workspace.
#### Other dependencies
Move to the active workspace:
Move to the active workspace:
```bash
```bash
roscd &&cd ../src
roscd &&cd ../src
...
@@ -34,9 +65,34 @@ catkin_make
...
@@ -34,9 +65,34 @@ catkin_make
## How to use it
## How to use it
- Standalone test
This node provides the following launch files:
-**node.launch**: Launch file intended to be included by a general launch file. It has the following arguments:
-*node_name*: Node name.
-*config_file*: Node configuration yaml file.
-*imu_topic*: IMU input data topic name to be remaped.
-*imu_calibration_file*: IMU calibration file (not used for raw data mode).
`roslaunch iri_collision_manager test.launch`
-**rosbag_and_rviz.launch**: Launch file for development and debugging purpouses.
## Disclaimer
## Disclaimer
...
@@ -47,4 +103,4 @@ This package is distributed in the hope that it will be useful, but without any
...
@@ -47,4 +103,4 @@ This package is distributed in the hope that it will be useful, but without any
In no event unless required by applicable law the author will be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the program to operate with any other programs), even if the author has been advised of the possibility of such damages.
In no event unless required by applicable law the author will be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the program to operate with any other programs), even if the author has been advised of the possibility of such damages.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>