{"action":"created","issue":{"url":"https://api.github.com/repos/ament/ament_tools/issues/85","repository_url":"https://api.github.com/repos/ament/ament_tools","labels_url":"https://api.github.com/repos/ament/ament_tools/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/ament/ament_tools/issues/85/comments","events_url":"https://api.github.com/repos/ament/ament_tools/issues/85/events","html_url":"https://github.com/ament/ament_tools/issues/85","id":139313778,"number":85,"title":"Question: Building Message inside of package that uses the message","user":{"login":"firesurfer","id":8481806,"avatar_url":"https://avatars.githubusercontent.com/u/8481806?v=3","gravatar_id":"","url":"https://api.github.com/users/firesurfer","html_url":"https://github.com/firesurfer","followers_url":"https://api.github.com/users/firesurfer/followers","following_url":"https://api.github.com/users/firesurfer/following{/other_user}","gists_url":"https://api.github.com/users/firesurfer/gists{/gist_id}","starred_url":"https://api.github.com/users/firesurfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firesurfer/subscriptions","organizations_url":"https://api.github.com/users/firesurfer/orgs","repos_url":"https://api.github.com/users/firesurfer/repos","events_url":"https://api.github.com/users/firesurfer/events{/privacy}","received_events_url":"https://api.github.com/users/firesurfer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ament/ament_tools/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-08T15:55:43Z","updated_at":"2016-03-09T15:24:37Z","closed_at":"2016-03-08T17:24:31Z","body":"Is it possible to define and build a message in a package that has some more code that uses the message?\r\nOr is it intended by design to separate messages and code? In the specific scenario I wanted to create a simple logger as a replacement until there is a ros2 logging package. It would be nicer if I could ship messages and logging code inside the same package."},"comment":{"url":"https://api.github.com/repos/ament/ament_tools/issues/comments/194343477","html_url":"https://github.com/ament/ament_tools/issues/85#issuecomment-194343477","issue_url":"https://api.github.com/repos/ament/ament_tools/issues/85","id":194343477,"user":{"login":"dirk-thomas","id":1335366,"avatar_url":"https://avatars.githubusercontent.com/u/1335366?v=3","gravatar_id":"","url":"https://api.github.com/users/dirk-thomas","html_url":"https://github.com/dirk-thomas","followers_url":"https://api.github.com/users/dirk-thomas/followers","following_url":"https://api.github.com/users/dirk-thomas/following{/other_user}","gists_url":"https://api.github.com/users/dirk-thomas/gists{/gist_id}","starred_url":"https://api.github.com/users/dirk-thomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirk-thomas/subscriptions","organizations_url":"https://api.github.com/users/dirk-thomas/orgs","repos_url":"https://api.github.com/users/dirk-thomas/repos","events_url":"https://api.github.com/users/dirk-thomas/events{/privacy}","received_events_url":"https://api.github.com/users/dirk-thomas/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T15:24:37Z","updated_at":"2016-03-09T15:24:37Z","body":"Since it only compiles after repeated runs you are likely lacking a necessary target dependency. For the generation step you have specified a target name (the first argument of `rosidl_generate_interfaces`). Whatever library or executable you build which needs the generated headers must specify a target dependency on targe that."}}