ElettraSciComp / witmotion_IMU_ros

ROS wrapper for the family of IMU sensor devices manufactured by Witmotion Ltd.
MIT License
29 stars 36 forks source link

BWT901CL imu not showing any data #32

Closed shazib2t closed 12 months ago

shazib2t commented 12 months ago

I was able to run the wit-motion imu roslaunch file and it seems to connect as shown below, but I do not see the /imu data in the ros topic.

$ roslaunch witmotion_ros wt901.launch ... logging to /home/aro/.ros/log/5d613466-638a-11ee-b39d-efb92b729d2e/roslaunch-aro-15176.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://aro:42723/

SUMMARY

PARAMETERS

NODES / witmotion_imu (witmotion_ros/witmotion_ros_node)

ROS_MASTER_URI=http://localhost:11311

process[witmotion_imu-1]: started with pid [15225] Opening device "ttyUSB0" at 115200 baud Instantiating timer at 10 ms

** when I am trying to see the /imu topic it does not give any data.

NEED HELP on this

twdragon commented 12 months ago

/witmotion_imu/imu_publisher/use_native_orientation: True

Try to set this parameter to false, because if your IMU does not produce quaternions, it will not show any data with this parameter turned true

shazib2t commented 12 months ago

@twdragon That solves the problem, but when I am configuring the witmotion.yaml file with 115200 baud it works. I noticed the use_native_orientation: false is set to false there now as well. Thanks for quick reply. Really appreciate it.

twdragon commented 12 months ago

Thanks! This is an easy case also described here https://wiki.ros.org/witmotion_ros/Troubleshooting