{"action":"created","issue":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/848","labels_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/848/labels{/name}","comments_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/848/comments","events_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/848/events","html_url":"https://github.com/RobotLocomotion/drake/issues/848","id":60769485,"number":848,"title":"eval() and fasteval() treat t as 0 if it's a Matlab `single`","user":{"login":"rdeits","id":591886,"avatar_url":"https://avatars.githubusercontent.com/u/591886?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeits","html_url":"https://github.com/rdeits","followers_url":"https://api.github.com/users/rdeits/followers","following_url":"https://api.github.com/users/rdeits/following{/other_user}","gists_url":"https://api.github.com/users/rdeits/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeits/subscriptions","organizations_url":"https://api.github.com/users/rdeits/orgs","repos_url":"https://api.github.com/users/rdeits/repos","events_url":"https://api.github.com/users/rdeits/events{/privacy}","received_events_url":"https://api.github.com/users/rdeits/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-12T04:24:13Z","updated_at":"2015-03-12T14:42:36Z","closed_at":null,"body":"try it:\r\n\r\n```\r\nK>> traj = PPTrajectory(foh([0, 1], [0, 1]));\r\n\r\nK>> traj.eval(0.5)        \r\n\r\nans =\r\n\r\n    0.5000\r\n\r\nK>> traj.eval(single(0.5))\r\n\r\nans =\r\n\r\n  5.2221e-315\r\n\r\nK>> traj.eval(double(single(0.5)))\r\n\r\nans =\r\n\r\n    0.5000\r\n```\r\n\r\nThis is made much worse by the fact that `single` + `double` = `single` for some crazy reason, so having one `single` around will break all sorts of things in silent and scary ways. We end up with `single`s when we load LCM types with `float`s. "},"comment":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/comments/78492933","html_url":"https://github.com/RobotLocomotion/drake/issues/848#issuecomment-78492933","issue_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/848","id":78492933,"user":{"login":"rdeits","id":591886,"avatar_url":"https://avatars.githubusercontent.com/u/591886?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeits","html_url":"https://github.com/rdeits","followers_url":"https://api.github.com/users/rdeits/followers","following_url":"https://api.github.com/users/rdeits/following{/other_user}","gists_url":"https://api.github.com/users/rdeits/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeits/subscriptions","organizations_url":"https://api.github.com/users/rdeits/orgs","repos_url":"https://api.github.com/users/rdeits/repos","events_url":"https://api.github.com/users/rdeits/events{/privacy}","received_events_url":"https://api.github.com/users/rdeits/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T14:42:36Z","updated_at":"2015-03-12T14:42:36Z","body":"Ah, I was trying to keep the analogy we have in controlUtil with `myGetField` (which is a safer version of `mxGetField`) and `myGetProperty` vs. `mxGetProperty`. Should we try to keep a consistent scheme for these utils:"}}