Closed musstt closed 2 weeks ago
Press Ctrl+C to stop enumeration and see the report Opening device "ttyUSB0" at 19200 baud Instantiating timer at 50 ms ^C Closing TTL connection
WITMOTION UART MESSAGE ENUMERATOR BY TWDRAGON
Acquired at Rabu, 06 November 2024 22.19.29 WIB
ID Qty Description
0x51 2 Accelerations 0x54 1 Magnetometer/Magnetic orientation 0x55 9 Data ports (D0-D3) status
Unknown IDs: 0 [ ]
Total messages: 12
i try message enumator
@musstt you should disable anything except Accelerations in the IMU ROS message builder, otherwise it will never consider the data structure complete, so:
imu_publisher:
topic_name: /imu
frame_id: imu
use_native_orientation: false
measurements:
acceleration:
enabled: true
covariance: [ 0.0088, 0, 0,
0, 0.0550, 0,
0, 0, 0.0267 ]
angular_velocity:
- enabled: true
+ enabled: false
covariance: [ 0.1199, 0, 0,
0, 0.5753, 0,
0, 0, 0.0267 ]
orientation:
- enabled: true
+ enabled: false
covariance: [ 0.0190, 0, 0,
0, 0.0120, 0,
0, 0, 0.0107 ]
@musstt if you will have success, please do not hesitate to create the test report here: #16
what about the baud rate and polling interval parameters?
and another publisher? should i change the enable parameters to false?
musthofa@musthofa-ubuntu:~$ rosrun witmotion_ros message-enumerator -d ttyUSB0 -b 19200 -p 50 Press Ctrl+C to stop enumeration and see the report Opening device "ttyUSB0" at 19200 baud Instantiating timer at 50 ms ^C Closing TTL connection
WITMOTION UART MESSAGE ENUMERATOR BY TWDRAGON
Acquired at Rabu, 06 November 2024 22.30.38 WIB
ID Qty Description
0x51 2 Accelerations 0x54 1 Magnetometer/Magnetic orientation 0x55 2 Data ports (D0-D3) status 0x57 1 GPS Coordinates 0x59 1 Spatial orientation (Quaternion)
Unknown IDs: 0 [ ]
Total messages: 7
musthofa@musthofa-ubuntu:~$ rosrun witmotion_ros message-enumerator -d ttyUSB0 -b 19200 -p 50 Press Ctrl+C to stop enumeration and see the report Opening device "ttyUSB0" at 19200 baud Instantiating timer at 50 ms ^C Closing TTL connection
WITMOTION UART MESSAGE ENUMERATOR BY TWDRAGON
Acquired at Rabu, 06 November 2024 22.32.15 WIB
ID Qty Description
0x51 2 Accelerations 0x55 1 Data ports (D0-D3) status
Unknown IDs: 0 [ ]
Total messages: 3
i try another message enumator, but it seems like not consistent
@musstt these parameters should be set up according to the actual settings of your device. Now I see only IMU and Magnetometer publishers should be enabled.
Update For now it seems 19200
baud is sufficient, but you should use one of the example controller applications or the official Witmotion application to set the parameters directly on the device
what do you think?
@musstt I recommend you reduce the baudrate to 115200, adjust the polling rate to 10 ms, and output rate to 100 Hz, and then set up the bandwidth accordingly. 1 KHz, as I see, will be less accurate (due to the Kalman filter) and redundant for most applications.
@musstt sorry but I need to close this issue here, as your device is working and there are no bugs reported. Please, if you need still to reach me, do not hesitate to open a discussion on ROS Discourse mentioning me as @twdragon
and inserting a link to this issue (#45
)
Wait, could you tell me what parameters enable should be true or false, i cant figure it out although i see from the windows application, sorry
@musstt you should set up enabled
to all measurements in the IMU, and Magnetometer, it is enough for your setup. But please adjust in the official app the baudrate, and then set it up in your config accordingly.
@musstt once you see them in the Content section of the official app, then you should enable them in the config
Thank you so much!!!!! It works!!!!!
this is my config.yaml file
i dont know what parameter need to be set true and false