-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardware Trigger Setup for microstrain 3DM-CV7-AHRS #260
Comments
Hi Alex, I followed the tutorial and verified that the CV7 behaves as expected. You can verify your device is streaming both AHRS and Filter data by looking for packets with descriptor set (third byte) 0x80 and 0x82 in the byte monitor. You should see "75 65 80 ..." and "75 65 82 ...". The tutorial configures 1 trigger and 2 actions associated with it - one message action for AHRS data and one for Filter data. SensorConnect uses the term "event" to mean "trigger", so there is no "Event 2" because there's only one trigger. Instead, "Event 1" contains data from both AHRS and Filter message actions. The filter data says (Est) next to it, short for "estimation filter". E.g. "Roll (Est)". The timestamps are grouped separately as "AHRS" and "Est Filter". If I select the pitch, roll, or yaw fields they appear in the time series plot. Unless I missed something it seems everything is working and you should be able to move on to the ROS integration. I'll pass this info along to the SensorConnect team. Sam |
@microstrain-sam Thanks for your reply and it make the entire thing more clear to me now. I have also tried to add other data into the action such as Scaled Gyro (0x80,0x05) but I remember it will not appear in the list of Event 1. May I know is that the case for you also? Or the action only can stream certain type of data from the 0x80 and 0x82? Besides, does the current ROS integration stream the event data? If not, do you mind to give some hint which or where should I add the relevant code? Will do the PR after testing. ---Update--- |
Hi @Alex-Beh, the driver does not support event data at all right now. When event data is streamed it will be output like normal data, so the logic in If you only care about getting event data, this could be fixed by simply setting an empty message format. You could do that here by sending an empty array to this function. In this case, we will still configure all the ROS publishers, but we will only publish a ROS message when we get event data as that is the only kind of data the driver will receive from the device. If you do care about both event data and non event data, that is a much more complicated issue. You would need to set up new publishers for each event, and depending on the event source populate the appropriate message. In regards to the data not showing up in the list of Event 1, @microstrain-sam and I tested this and saw similar behavior when we first configured the event in SensorConnect, but after reconnecting the device (via the SensorConnect disconnect and reconnect button), the data started showing up in SensorConnect |
The only way to do this is hardcode in the source code? Or there is a way to configure in the launch file? I only care about the event data so what I did now is configure the IMU to only output the event data and set the |
@Alex-Beh |
Yes eventually I have successfully setup the hardware trigger for 3dmcv7. Have you followed the steps here? https://s3.amazonaws.com/files.microstrain.com/CV7+Online/user_manual_content/app_notes/Example%20Synchronized%20Data%20Output.htm |
I want to use hardware synchronization in ROS, how do I set up the yaml file? Are there any other settings needed?
I want to use hardware synchronization in ROS, how do I set up the yaml file? Are there any other settings needed? |
No special file, just follow the steps few times and you will achieve what you want. I can share you my json file once I have access to my sensor next time. Can I have your contact? would like to have deeper discussion with you. |
My email is [email protected]. Thank you very much! |
@Alex-Beh |
Hello, I have successfully set up event triggering on Windows. When there is a pulse, Event 1 outputs data, and it doesn't output anything when there's no pulse. However, I want to use this in ROS and I'm not sure how to set it up to work the same way as in Windows. Alternatively, how can I use the data from Event 1? |
Hi, I am trying to configure the hardware triggering application on microstrain 3DM-CV7-AHRS. I am following the tutoral ynchronizing Data Output with an External System. I use packet builder to send all the commands (as shown below).
However, the first issue I encounter is I cannot see the event 2 in data streaming.
I want to make sure the configuration is okay first before move to ROS wrapper. But I am unable to stream the event 2 from SensorConnect.
Here is the json config file. Have renamed the extension to txt because I am unable to upload json file here.
3DM-CV7-AHRS_config.txt
The text was updated successfully, but these errors were encountered: