PolibaX / rclgo

Go bindings for ROS2. Forked from https://github.com/tiiuae/rclgo
Apache License 2.0
2 stars 1 forks source link

Humble Version #2

Open dp1140a opened 1 month ago

dp1140a commented 1 month ago

What would I need to do to make this backwards compatible or to create a new branch that worked with Humble. Issue I have is that Jazzy only runs on Ubuntu24. Im on PopOS which hasnt yet released 24.04. So until then Im stuck on Humble. Happy to do the work just need a little guidance.

dp1140a commented 1 month ago

Definitely getting closer.

  1. had to change jazzy to humble in ros2.env and const correctDistro = "humble" in generate.go

tried to run the publisher example.

  1. ran generate.go <-- OK
  2. had to manually export CGO_CFLAGS from the generated cgo-flags.env file otherwise I got a file not found for the c includes
  3. ran go run ./publisher
    go run ./publisher
    # github.com/PolibaX/rclgo/pkg/rclgo
    ../../pkg/rclgo/errortypes.gen.go:45:7: could not determine kind of name for C.RCL_RET_NOT_FOUND

Did I miss a step or is there another message generation step at the top of all this?

dp1140a commented 1 month ago

Looks like this error has something to do with the ROS2 Logger. I ran a search on the ROS2 repo for RCL_RET_NOT_FOUND and got a few hits.

Update: SO I just commented the 2 lines in question out and lo and behold it ran fine on humble