ogma icon indicating copy to clipboard operation
ogma copied to clipboard

include error when using ogma ros with fret files (very minor issue)

Open EliasH-NMBU opened this issue 2 years ago • 2 comments

When running cabal v1-exec -- runhaskell demo.hs I receive a fret.c and fret.h file (and a fret_types.h) The minor thing is that the ogma ros files expect these to be named monitor.h and monitor.c. Meaning each time I generate a ogma ros package I have to change the include names. Just wondered if it could be changed so that the .hs file says "monitor" instead of "fret"

FROM main :: IO () main = reify spec >>= compile "fret"

TO main :: IO () main = reify spec >>= compile "monitor"

EliasH-NMBU avatar Mar 05 '24 11:03 EliasH-NMBU

Hi Elias!

There is a way to do this. The argument --target-file-name allows you to control this setting. Use --help if unsure.

ivanperez-keera avatar Mar 05 '24 14:03 ivanperez-keera

I'm closing as not needed because the feature is there, but feel free to re-open if that doesn't work.

ivanperez-keera avatar Mar 05 '24 14:03 ivanperez-keera