-
Notifications
You must be signed in to change notification settings - Fork 0
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
New airframes #45
base: new_ros2
Are you sure you want to change the base?
New airframes #45
Conversation
It's a bit problematic that the airframe configuration is part of the program code. That is to say, it's not nice to have to ship new software version in order to:
I'd much rather extract the configuration outside of this software, in pseudo this could be in manifest: {
"Airframes": [
{
"Name": "holybro",
"LidarParameters": {
"Kind": "rplidar",
"fcu_to_rplidar": "0, 0, 0.09, 0, 0, 0",
"fcu_to_garmin": "-0.007, -0.05, -0.036, 0, 1.5708, 0"
},
"Notes": ""
},
{
"Name": "rover",
"LidarParameters": {
"Kind": "rplidar",
"fcu_to_rplidar": "0, 0, 0.09, 0, 0, 0",
"fcu_to_garmin": "-0.007, -0.05, -0.036, 0, 1.5708, 0"
},
"Notes": "Lidar parameters the same as for holybro"
},
{
"Name": "m690",
"LidarParameters": {
"Kind": "rplidar",
"fcu_to_rplidar": "-0.078, 0, 0.0614, 3.141592, 0, 0",
"fcu_to_garmin": "-0.20, 0, 0.0139, 0, 1.5708, 0"
},
"Notes": ""
},
{
"Name": "m1200",
"LidarParameters": {
"Kind": "rplidar",
"fcu_to_rplidar": "-0.15, 0, 0.09, 3.141592, 0, 0",
"fcu_to_garmin": "-0.13, 0, -0.13, 0, 1.5708, 0"
},
"Notes": ""
}
]
} Then we could just give as ENV vars these from manifest:
(just an example, of course fog-hyper would provide the correct ones based on selected airframe) This would:
|
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.
After the t-drone -> m690 link change is done, it could be merged
I thought we had consensus that we should move airframe configuration to reside outside of the software? I mean if this is not the perfect time to implement it then when is? I'd happily implement this at fog-hyper side, if we don't have time to design a file format we can first hardcode the airframe config registry into fog-hyper and use ENV vars to pass this data and then later revamp the design. |
I am working on it, the structure to work both with fognav, rplidar, and some other possible nodes. It requires some planning, both in fog_hyper and manifest. It will also ease up the parameter structure of fognav. I added some comments here about the possible ways in DP-8150. Feel free to comment and add ideas. Meanwhile, we can continue with this to not block any further development on m1200 frame. Later, reworked version will be added. |
m1200
t-drone
config tom690
static_rplidar.py
now includesallowed_frames
liststatic_tf_<airframe-name>_launch.py