-
Notifications
You must be signed in to change notification settings - Fork 1
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
henthorn/sim pblog #44
Conversation
Any specific reason the logger's named |
I am running this feature and it looks great, I do have a few comments, and I will try to get them appropriately spread between this PR, #47 in mbari_wec_utils, and #140 in mbari_wec_gz, but we may have to review all of these together... For this PR,
I'm running a 10's of minute sim now and will run the logfile output through the matlab processing next to see how that looks. |
Looking more closely, the data isn't quite being placed in the .csv file quite correctly. Here's what I see in my example. Line with first character = "0", should have battery data, and does in the correct places. :) So, some issues, seemingly largely to do the the wrong number of commas. Want me to sing the song?? |
I mixed-up the controller ids that go in the first column. That also causes the wrong number of empty columns (commas) to show up. This ought to be a one-line fix (CrossbowId = 3, not 5). I regret the error. |
Nice, let me know when it's ready to pull and run and I'll check it out. -- ah
…_______________________________________________
Andrew Hamilton, Ph.D.
Engineering Division Chair
Monterey Bay Aquarium Research Institute
7700 Sandholdt Road, Moss Landing, CA 95039
Phone: 831-775-1861 Fax: 831-775-1646
http://www.mbari.org/
From: "Rich Henthorn" ***@***.***>
To: "osrf/mbari_wec_utils" ***@***.***>
Cc: "Andrew Hamilton" ***@***.***>, "Review requested" ***@***.***>
Sent: Wednesday, May 3, 2023 12:57:16 PM
Subject: Re: [osrf/mbari_wec_utils] henthorn/sim pblog (PR #44)
I mixed-up the controller ids that go in the first column. That also causes the wrong number of empty columns (commas) to show up. This ought to be a one-line fix (CrossbowId = 3, not 5). I regret the error.
—
Reply to this email directly, [ #44 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AO4ZFCMSGLGLKVFYEQWMZ2DXEK2BZANCNFSM6AAAAAAWBTZ4WM | unsubscribe ] .
You are receiving this because your review was requested. Message ID: ***@***.***>
|
Pushed. The zipped file behavior is an artifact of the gzip class from the gzip package. |
* add launch args for log paths; add ros2 param for interval; fix symlinks; add rosdeps Signed-off-by: Michael Anderson <[email protected]> * Update package.xml fix rosdep * fix atexit gzip Signed-off-by: Michael Anderson <[email protected]> * linter Signed-off-by: Michael Anderson <[email protected]> * update default pblog root; stop gzipping at exit; fix gzipping at start Signed-off-by: Michael Anderson <[email protected]> * remove unused import Signed-off-by: Michael Anderson <[email protected]> * Correct faulty CrossbowID value from 5 to 3 --------- Signed-off-by: Michael Anderson <[email protected]> Co-authored-by: Rich Henthorn <[email protected]>
Although controller number five is gone and there is data in controller number three, things are still not landing in the correct columns for some of the controllers. I find a good way to check this is to open the .csv in excel, that separates all the values (based on the commas) underneath the named column. I suppose this way of checking isn't correct and introducing a mis-understanding, but I think excel is reliable for this and some of the controllers are putting things in the correct place, |
…record when xb_header, bc_header, and sc_header should have been used
How are you getting the sim time? If you are writing a Gazebo plugin, it would be free, as it comes in the parameter to the update function. In the Gazebo world, it is published as a topic
Does |
We are using the ros_gz_bridge to get sim time to the ros node in the plugin to publish the controller messages. The problem is |
@hamilton8415 @rhenthorn I believe the logs are working correctly now. The way the timestamps are set up in the csv logs is that it looks as if the logs are written in real time from the time the log started. So the logs will still show 10Hz timestamps even though in wall-time it's churning out data at 20Hz for RTF 2 for example. I believe this is all working as intended now. |
Signed-off-by: Michael Anderson <[email protected]>
* add async proxy to await future for pack rate calls Signed-off-by: Michael Anderson <[email protected]> * typo Signed-off-by: Michael Anderson <[email protected]> --------- Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
@hamilton8415 Latest patch uses line buffering for csv files :) nicer looking |
For sure. Thanks. Has the same buffering behavior as the buoy now. Much better. |
Signed-off-by: Michael Anderson <[email protected]>
The IMU sensor quaternions look fine all along the chain from the sensor to the csv. The IMU in the sim is located at the link origin where the tether meets the heave cone and is in ENU orientation. |
Thanks for checking this. I am able to resolve the pitch/roll/yaw of the heave-cone from this data, but things are rotated by 90 degrees from what the buoy outputs. On the buoy those items come directly off the VectorNav VN-100, so we may need to look into the orientation of that sensor relative to the heave-cone orientation. Or, just make a rotation until the sim data matches the buoy data with regard to which axis points up. The horizontal axes aren't really distinguishable. I think I may be able to say which way things need to be rotated to match... |
We can certainly rotate the sensor frame wrt the link |
Signed-off-by: Michael Anderson <[email protected]>
…c_utils into henthorn/sim_pblog
@hamilton8415 latest patch fixes the data loss when log rolling tail of previous log
head of new log
|
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
Signed-off-by: Michael Anderson <[email protected]>
With respect to the IMU mounted in the heave cone. x-y-z axis of the device itself is mounted on the heave cone with it's y and z-azis pointing horizontally. I am not yet sure of the x-axis is pointing towards the top or the bottom of the heave cone, the quaternion multiplication I use to make z point upwards for subsequent computation of heave/pitch/yaw Euler angles is below, so there's a hint in that... qmult(TC_Qtn,[sqrt(.5) 0 -sqrt(.5) 0]); %Rotate sensor 90 degrees about y-axis to make z point up. |
Strange, because I checked the mesh origin yesterday, and the Z axis was pointing up. The IMU should be coincident with this with Z up as well. I'll keep digging |
I think it makes some sense, the physical IMU is mounted with z horizontal (when the heave-cone is in the rest position) and therefore the simulated IMU needs to be mounted the same. Or, the output rotated... |
Oh oops, I just re-read your previous comment, and yes I understand now. |
Testing newtons/lbs meters/inches now... |
Looks to me as if everything is correct with this and the analog related to logging in _gz, I am not sure if the tests are all running correctly, so maybe some attention needed there. I will keep testing and hope this can be merged very soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done further testing for this and believe it is ready to be merged into main, along with mbari_wec_gz #140
I believe all changes are contained in the sim_pblog folder in buoy_msgs.