acowley / roshask

Haskell client library for the ROS robotics framework.
BSD 3-Clause "New" or "Revised" License
107 stars 18 forks source link

Can't generate package for ros/fuerte/stacks/geometry/tf #17

Closed rgleichman closed 10 years ago

rgleichman commented 10 years ago

When I create a roshask package that depends on tf, and then run roshask dep, it prints out

Generating package /opt/ros/fuerte/stacks/bullet
Using existing geometry_msgs
Using existing sensor_msgs
Generating package /opt/ros/fuerte/stacks/geometry/angles
Generating package /opt/ros/fuerte/share/rostest
Generating package /opt/ros/fuerte/share/roswtf
Generating package /opt/ros/fuerte/share/message_filters
Generating package /opt/ros/fuerte/stacks/geometry/tf
Resolving dependencies...
Configuring ROS-tf-msgs-0.1.3...
Building ROS-tf-msgs-0.1.3...
Preprocessing library ROS-tf-msgs-0.1.3...
cabal: can't find source for Ros/Tf/TfMessage in ., dist/build/autogen
Failed to install ROS-tf-msgs-0.1.3
cabal: Error: some packages failed to install:
ROS-tf-msgs-0.1.3 failed during the building phase. The exception was:
ExitFailure 1
roshask: Building messages for tf failed

My guess as to what's going wrong is that the file name tfMessage.msg begins with a lower case letter. This means that roshask generates tfMessage.hs, but the module name is Ros.Tf.TfMessage.

acowley commented 10 years ago

Your guess looks reasonable. Can you see if fixing it works, and, if so, open a pull request?

The relevant code is here: https://github.com/acowley/roshask/blob/dev/src/executable/PkgBuilder.hs#L130

rgleichman commented 10 years ago

See #18. It does not fully solve this issue since src/executable/Storable.hs still needs to be fixed.

rgleichman commented 10 years ago

See #19.