Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BNO055 gets anatomical orientation

    BNO055 gets anatomical orientation

    Django
    Member

    Hi,

    I am writing in this forum for the first time. I am using a BNO055 fixed at the thigh to record the orientation of the leg during a gait. In order to do it, I plotted the yaw output. There is weird behavior based on the inversion walk. Imagine being in a room doing a walk forward, then rotate yourself and you come back. During the inversion, the coordinate system of the start is changed from 0 to 360 because the base coordinate system for navigation is fixed to the Earth. In the black section, the sensor is just calibrated totally. Then it is worn at the level of the thigh more or less and I start to walk. The red indicates the walk in a direction and the green in the opposite one (where each wave indicates a step). All of them of course include the inversion of gait at the end of each color. I need to put some thresholds to let the sensor recognize in real-time the maximum and minimum of each wave. How can I do it?

    Furthermore, I am not able to interpret the graph of the quaternion.

    Tips or github link are super appreciated. Thank you so much.

     

    CatturaHF.PNG

    4 REPLIES 4

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    The red and green waveforms of BNO055 yaw output clearly show each step. You don't need to define min/mac threshold to recognize each step. Instead, you can use peak detection algorithm which you can search online.

    Quaternion is a way to describe the relationship between BNO055 body axes and fixed local frame axes. It is equivalent to Euler angles (pitch/roll/yaw). So you can just use Euler angles for your application and ignore quaternions.

    Thanks.

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Django,

    We would like to know how you attach the BNO055 on the thigh, and what's the direction?

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Django,

    If the x axis of the your device is towards up or down(pitch angle =90/-90 deg). And then you measure the yaw angle around the z axis to try to measure the angle of thigh. That's not a good way. Because we use the rotation sequence as yaw-pitch-roll, so when rotate to 90 deg , that would be gimbal lock handling. I would suppose 3 ways to fix this issue:
    1.You can make the y axis towards up/down and then measure the yaw angle.
    2.You can put the z axis of the device towards up, and then measure the pitch or roll angle.
    3.We can remap the axis of the BNO055 and generate a new firmware for you.

    Thank you so much, I figured out avoiding the gimbal lock. I did it only considering the vertical acceleration. Then I measured the inclination referring to it. Thank you again.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist