{"action":"created","issue":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/3351","repository_url":"https://api.github.com/repos/RobotLocomotion/drake","labels_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/3351/labels{/name}","comments_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/3351/comments","events_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/3351/events","html_url":"https://github.com/RobotLocomotion/drake/issues/3351","id":174915379,"number":3351,"title":"Can't include bot_core LCM types that refer to other bot_core LCM types","user":{"login":"tkoolen","id":2585880,"avatar_url":"https://avatars.githubusercontent.com/u/2585880?v=3","gravatar_id":"","url":"https://api.github.com/users/tkoolen","html_url":"https://github.com/tkoolen","followers_url":"https://api.github.com/users/tkoolen/followers","following_url":"https://api.github.com/users/tkoolen/following{/other_user}","gists_url":"https://api.github.com/users/tkoolen/gists{/gist_id}","starred_url":"https://api.github.com/users/tkoolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkoolen/subscriptions","organizations_url":"https://api.github.com/users/tkoolen/orgs","repos_url":"https://api.github.com/users/tkoolen/repos","events_url":"https://api.github.com/users/tkoolen/events{/privacy}","received_events_url":"https://api.github.com/users/tkoolen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RobotLocomotion/drake/labels/priority:%20medium","name":"priority: medium","color":"e99695"},{"url":"https://api.github.com/repos/RobotLocomotion/drake/labels/team:%20kitware","name":"team: kitware","color":"0052cc"},{"url":"https://api.github.com/repos/RobotLocomotion/drake/labels/type:%20bug","name":"type: bug","color":"0e8a16"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-03T20:19:41Z","updated_at":"2016-09-07T15:32:06Z","closed_at":null,"body":"I'll use `systems/plants/test/lidarTest.cpp` as an example. In this file, we include `planar_lidar_t.hpp` as follows:\r\n```C++\r\n#include \"lcmtypes/bot_core/planar_lidar_t.hpp\"\r\n```\r\n\r\nThis works. However, if I pattern match this to include `position_3d_t.hpp` right below, using\r\n```C++\r\n#include \"lcmtypes/bot_core/position_3d_t.hpp\"\r\n```\r\nthen I get the following error:\r\n```\r\nIn file included from /Users/twan/code/drake-distro/drake/systems/plants/test/lidarTest.cpp:9:\r\n/Users/twan/code/drake-distro/build/install/include/lcmtypes/bot_core/position_3d_t.hpp:12:10: fatal error: 'bot_core/vector_3d_t.hpp' file not found\r\n#include \"bot_core/vector_3d_t.hpp\"\r\n         ^\r\n1 error generated.\r\nmake[5]: *** [systems/plants/test/CMakeFiles/testLidar.dir/lidarTest.cpp.o] Error 1\r\nmake[4]: *** [systems/plants/test/CMakeFiles/testLidar.dir/all] Error 2\r\n```\r\n\r\nThis is because `position_3d_t` has a `vector_3d_t` field, and (generated) bot_core LCM type hpp files include other bot_core LCM types as\r\n```C++\r\n#include \"bot_core/$SOME_TYPE.hpp\"\r\n```\r\n\r\nPlease advise on the right way to fix this. This is currently a blocking issue for me."},"comment":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/comments/245319443","html_url":"https://github.com/RobotLocomotion/drake/issues/3351#issuecomment-245319443","issue_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/3351","id":245319443,"user":{"login":"mwoehlke-kitware","id":6474409,"avatar_url":"https://avatars.githubusercontent.com/u/6474409?v=3","gravatar_id":"","url":"https://api.github.com/users/mwoehlke-kitware","html_url":"https://github.com/mwoehlke-kitware","followers_url":"https://api.github.com/users/mwoehlke-kitware/followers","following_url":"https://api.github.com/users/mwoehlke-kitware/following{/other_user}","gists_url":"https://api.github.com/users/mwoehlke-kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/mwoehlke-kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwoehlke-kitware/subscriptions","organizations_url":"https://api.github.com/users/mwoehlke-kitware/orgs","repos_url":"https://api.github.com/users/mwoehlke-kitware/repos","events_url":"https://api.github.com/users/mwoehlke-kitware/events{/privacy}","received_events_url":"https://api.github.com/users/mwoehlke-kitware/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T15:32:06Z","updated_at":"2016-09-07T15:32:06Z","body":"Before we \"fix this properly\", I'd like to agree on what constitutes \"properly\". Should LCM type includes always start with `lcmtypes/`, including in generated files? Or should they never start with `lcmtypes/`?"}}
{"actor":{"display_login":"mwoehlke-kitware"}}