{"action":"created","issue":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/9887","repository_url":"https://api.github.com/repos/RobotLocomotion/drake","labels_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/9887/labels{/name}","comments_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/9887/comments","events_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/9887/events","html_url":"https://github.com/RobotLocomotion/drake/issues/9887","id":376123673,"node_id":"MDU6SXNzdWUzNzYxMjM2NzM=","number":9887,"title":"pydrake: Make it easier to figure what index is a TypeSafeIndex vs. GeometryId, add pure-Python tests","user":{"login":"EricCousineau-TRI","id":26719449,"node_id":"MDQ6VXNlcjI2NzE5NDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/26719449?v=4","gravatar_id":"","url":"https://api.github.com/users/EricCousineau-TRI","html_url":"https://github.com/EricCousineau-TRI","followers_url":"https://api.github.com/users/EricCousineau-TRI/followers","following_url":"https://api.github.com/users/EricCousineau-TRI/following{/other_user}","gists_url":"https://api.github.com/users/EricCousineau-TRI/gists{/gist_id}","starred_url":"https://api.github.com/users/EricCousineau-TRI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricCousineau-TRI/subscriptions","organizations_url":"https://api.github.com/users/EricCousineau-TRI/orgs","repos_url":"https://api.github.com/users/EricCousineau-TRI/repos","events_url":"https://api.github.com/users/EricCousineau-TRI/events{/privacy}","received_events_url":"https://api.github.com/users/EricCousineau-TRI/received_events","type":"User","site_admin":false},"labels":[{"id":777833033,"node_id":"MDU6TGFiZWw3Nzc4MzMwMzM=","url":"https://api.github.com/repos/RobotLocomotion/drake/labels/configuration:%20python","name":"configuration: python","color":"fbca04","default":false},{"id":77798016,"node_id":"MDU6TGFiZWw3Nzc5ODAxNg==","url":"https://api.github.com/repos/RobotLocomotion/drake/labels/priority:%20low","name":"priority: low","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"EricCousineau-TRI","id":26719449,"node_id":"MDQ6VXNlcjI2NzE5NDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/26719449?v=4","gravatar_id":"","url":"https://api.github.com/users/EricCousineau-TRI","html_url":"https://github.com/EricCousineau-TRI","followers_url":"https://api.github.com/users/EricCousineau-TRI/followers","following_url":"https://api.github.com/users/EricCousineau-TRI/following{/other_user}","gists_url":"https://api.github.com/users/EricCousineau-TRI/gists{/gist_id}","starred_url":"https://api.github.com/users/EricCousineau-TRI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricCousineau-TRI/subscriptions","organizations_url":"https://api.github.com/users/EricCousineau-TRI/orgs","repos_url":"https://api.github.com/users/EricCousineau-TRI/repos","events_url":"https://api.github.com/users/EricCousineau-TRI/events{/privacy}","received_events_url":"https://api.github.com/users/EricCousineau-TRI/received_events","type":"User","site_admin":false},"assignees":[{"login":"EricCousineau-TRI","id":26719449,"node_id":"MDQ6VXNlcjI2NzE5NDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/26719449?v=4","gravatar_id":"","url":"https://api.github.com/users/EricCousineau-TRI","html_url":"https://github.com/EricCousineau-TRI","followers_url":"https://api.github.com/users/EricCousineau-TRI/followers","following_url":"https://api.github.com/users/EricCousineau-TRI/following{/other_user}","gists_url":"https://api.github.com/users/EricCousineau-TRI/gists{/gist_id}","starred_url":"https://api.github.com/users/EricCousineau-TRI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricCousineau-TRI/subscriptions","organizations_url":"https://api.github.com/users/EricCousineau-TRI/orgs","repos_url":"https://api.github.com/users/EricCousineau-TRI/repos","events_url":"https://api.github.com/users/EricCousineau-TRI/events{/privacy}","received_events_url":"https://api.github.com/users/EricCousineau-TRI/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-10-31T19:22:00Z","updated_at":"2018-10-31T20:34:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"From Slack discussion:\r\n\r\n> pangtao22 [36 minutes ago]\r\n> How can I get the integer value of `*Index` in python?\r\n> \r\n> pangtao22 [33 minutes ago]\r\n> Is this the right way to do it: `int(body.model_instance())`?\r\n> \r\n> jwnimmer-tri [31 minutes ago]\r\n> My guess is yes, from reading the implementation.  I don't see a python unittest showing an example though. (edited)\r\n>\r\n> eric.cousineau [3 minutes ago]\r\n> D'oh, yeah, need to add that in. \r\n> \r\n> eric.cousineau [1 minute ago]\r\n> Actually, sorry: Yes, there are tests, but it's a tad opaque and buried in C++: They are type-safe indices, which are tested here:\r\n> https://github.com/RobotLocomotion/drake/blob/27e8ed478f9131d77f625f3ab3a9cd7f90b09fb2/bindings/pydrake/util/test/type_safe_index_pybind_test.cc\r\n\r\n\\cc @pangtao22 @jwnimmer-tri"},"comment":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/comments/434838058","html_url":"https://github.com/RobotLocomotion/drake/issues/9887#issuecomment-434838058","issue_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/9887","id":434838058,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDgzODA1OA==","user":{"login":"SeanCurtis-TRI","id":22159799,"node_id":"MDQ6VXNlcjIyMTU5Nzk5","avatar_url":"https://avatars3.githubusercontent.com/u/22159799?v=4","gravatar_id":"","url":"https://api.github.com/users/SeanCurtis-TRI","html_url":"https://github.com/SeanCurtis-TRI","followers_url":"https://api.github.com/users/SeanCurtis-TRI/followers","following_url":"https://api.github.com/users/SeanCurtis-TRI/following{/other_user}","gists_url":"https://api.github.com/users/SeanCurtis-TRI/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanCurtis-TRI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanCurtis-TRI/subscriptions","organizations_url":"https://api.github.com/users/SeanCurtis-TRI/orgs","repos_url":"https://api.github.com/users/SeanCurtis-TRI/repos","events_url":"https://api.github.com/users/SeanCurtis-TRI/events{/privacy}","received_events_url":"https://api.github.com/users/SeanCurtis-TRI/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T20:34:20Z","updated_at":"2018-10-31T20:34:20Z","author_association":"CONTRIBUTOR","body":"It's worth noting that the `Identifier` is designed to be opaque. You're not supposed to know what value it has. (Although you *can* print it out...which leaks that a bit.) But there is no API to directly get the underlying integer value."}}
{"actor":{"display_login":"SeanCurtis-TRI"}}