{"action":"created","issue":{"url":"https://api.github.com/repos/morse-simulator/morse/issues/593","labels_url":"https://api.github.com/repos/morse-simulator/morse/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/morse-simulator/morse/issues/593/comments","events_url":"https://api.github.com/repos/morse-simulator/morse/issues/593/events","html_url":"https://github.com/morse-simulator/morse/issues/593","id":56467423,"number":593,"title":"Stereo Camera not launching","user":{"login":"tiberiusferreira","id":5420615,"avatar_url":"https://avatars.githubusercontent.com/u/5420615?v=3","gravatar_id":"","url":"https://api.github.com/users/tiberiusferreira","html_url":"https://github.com/tiberiusferreira","followers_url":"https://api.github.com/users/tiberiusferreira/followers","following_url":"https://api.github.com/users/tiberiusferreira/following{/other_user}","gists_url":"https://api.github.com/users/tiberiusferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/tiberiusferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiberiusferreira/subscriptions","organizations_url":"https://api.github.com/users/tiberiusferreira/orgs","repos_url":"https://api.github.com/users/tiberiusferreira/repos","events_url":"https://api.github.com/users/tiberiusferreira/events{/privacy}","received_events_url":"https://api.github.com/users/tiberiusferreira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-04T01:34:39Z","updated_at":"2015-02-04T11:57:24Z","closed_at":null,"body":"\r\n![Uploading Capture d'écran 2015-02-03 14.56.00.png . . .]()\r\n Hello, thanks for building Morse and this awesome community! I'm having a problem with the stereo camera setup (or any camera in general, even just one).\r\n When I try to use this code which is from the tutorials:\r\n \t\t# A pan-tilt unit to be able to orient the cameras\r\n\t\tPlatine = PTU()\r\n\t\tPlatine.translate(x=0.2000, z=0.9000)\r\n\t\tself.append(Platine)\r\n\r\n\t\t# The STEREO UNIT, where the two cameras will be fixed\r\n\t\t#Stereo = StereoUnit()\r\n\t\t#Stereo.translate(z=0.0400)\r\n\t\t#Platine.append(Stereo)\r\n\t\t\r\n\t\t# Left camera\r\n\t\tCameraL = VideoCamera()\r\n\t\tCameraL.translate(x=0.1000, y=0.2000, z=0.0700)\r\n\t\tself.append(CameraL)\r\n\t\tCameraL.properties(capturing = True)\r\n\t\tCameraL.properties(cam_width = 320)\r\n\t\tCameraL.properties(cam_height = 240)\r\n\t\tCameraL.properties(cam_focal = 25.0000)\r\n\t\tCameraL.add_stream(\"ros\",topic='cameraL')\r\n\r\n\t\t# Right camera\r\n\t\tCameraR = VideoCamera()\r\n\t\tCameraR.translate(x=0.1000, y=-0.2000, z=0.0700)\r\n\t\tself.append(CameraR)\r\n\t\tCameraR.properties(capturing = True)\r\n\t\tCameraR.properties(cam_width = 320)\r\n\t\tCameraR.properties(cam_height = 240)\r\n\t\tCameraR.properties(cam_focal = 25.0000)\r\n\t\tCameraR.add_stream(\"ros\",topic='cameraR')\r\n\r\n\r\nIt loads up the simulation, then freezes it and doesn't start, but the terminal log says it started normally. Then it displays terminal text as if it was reloading again, then it starts but with errors of unset variables as if my models did not go through the setup phase. The error loops and spams the terminal. \r\n My work friends experienced the same problem and they say it is fixed replacing the camera scripts by older versions: 1.0 or 1.0.1 . It appears to be that the cameras create additional scenes in morse and in those scenes my models don't go through the regular setup phase. It also causes very poor performance.\r\n![capture d ecran 2015-02-03 14 56 00](https://cloud.githubusercontent.com/assets/5420615/6033465/42c126b4-abfd-11e4-9b15-a640c4251771.png)"},"comment":{"url":"https://api.github.com/repos/morse-simulator/morse/issues/comments/72842918","html_url":"https://github.com/morse-simulator/morse/issues/593#issuecomment-72842918","issue_url":"https://api.github.com/repos/morse-simulator/morse/issues/593","id":72842918,"user":{"login":"tiberiusferreira","id":5420615,"avatar_url":"https://avatars.githubusercontent.com/u/5420615?v=3","gravatar_id":"","url":"https://api.github.com/users/tiberiusferreira","html_url":"https://github.com/tiberiusferreira","followers_url":"https://api.github.com/users/tiberiusferreira/followers","following_url":"https://api.github.com/users/tiberiusferreira/following{/other_user}","gists_url":"https://api.github.com/users/tiberiusferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/tiberiusferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiberiusferreira/subscriptions","organizations_url":"https://api.github.com/users/tiberiusferreira/orgs","repos_url":"https://api.github.com/users/tiberiusferreira/repos","events_url":"https://api.github.com/users/tiberiusferreira/events{/privacy}","received_events_url":"https://api.github.com/users/tiberiusferreira/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T11:57:24Z","updated_at":"2015-02-04T11:57:24Z","body":"Sure. \r\nimport sys\r\nsys.path.append(\"../teste8\")\r\n\r\nfrom Carina2Class import *\r\nfrom sensor import *\r\nfrom morse.builder import *\r\n\r\n\r\nclass Carina2Builder(Robot):\r\n\tdef __init__(self):\r\n\t\tRobot.__init__(self, \"carina2.blend\")\t\t\r\n\t\tself.properties(classpath=\"Carina2Class.Carina2Class\")\r\n\t\t\r\n\t\t#add odometry\r\n\t\todometry = Odometry()\r\n\t\t#odometry.translate(0,0,0)\r\n\t\tself.append(odometry)\r\n\t\todometry.add_stream('ros', topic='/odom')\r\n\r\n\t\t\r\n\t\tpose = Pose()\r\n\t\tpose.translate(0,1.3,0.2)\r\n\t\tself.append(pose)\t\t\r\n\t\t#pose.add_stream(\"ros\", method=\"morse.middleware.ros.pose.TFPublisher\", topic=\"/base_link\")\r\n\t\tpose.add_stream(\"ros\", topic=\"/pose\")\r\n\t\t\r\n\t\t# add sick sensor\r\n\t\tsick = Sick()\r\n\t\tsick.translate(0,2.6,0.2)\r\n\t\tsick.rotate(0,0,1.570796327)\r\n\t\tself.append(sick)\r\n\t\tsick.add_stream(\"ros\", topic='/sick')\r\n\t\t\r\n\t\t#add gps\r\n\t\tgps = GPS()\r\n\t\tgps.translate(0,1.3,0.2)\r\n\t\tself.append(gps)\r\n\t\tgps.add_stream(\"ros\", topic='/gps')\r\n\t\t\r\n\t\t#add imu\r\n\t\timu = IMU()\r\n\t\timu.translate(0,1.3,0.2)\r\n\t\tself.append(imu)\r\n\t\timu.add_stream(\"ros\", topic='/imu')\r\n\t\t\r\n\t\t#velocity\r\n\t\tvelocity = Velocity()\r\n\t\tvelocity.translate(0,1.3,0.2)\r\n\t\tself.append(velocity)\r\n\t\tvelocity.add_stream(\"ros\", topic='/velocity')\t\t\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t\t# A pan-tilt unit to be able to orient the cameras\r\n\t\tPlatine = PTU()\r\n\t\tPlatine.translate(x=0.2000, z=0.9000)\r\n\t\tself.append(Platine)\r\n\r\n\t\t# The STEREO UNIT, where the two cameras will be fixed\r\n\t\tStereo = StereoUnit()\r\n\t\tStereo.translate(z=0.0400)\r\n\t\tPlatine.append(Stereo)\r\n\t\t\r\n\t\t# Left camera\r\n\t\tCameraL = VideoCamera()\r\n\t\tCameraL.translate(x=0.1000, y=0.2000, z=0.0700)\r\n\t\tStereo.append(CameraL)\r\n\t\tCameraL.properties(capturing = True)\r\n\t\tCameraL.properties(cam_width = 320)\r\n\t\tCameraL.properties(cam_height = 240)\r\n\t\tCameraL.properties(cam_focal = 25.0000)\r\n\t\tCameraL.add_stream(\"ros\",topic='cameraL')\r\n\r\n\t\t# Right camera\r\n\t\tCameraR = VideoCamera()\r\n\t\tCameraR.translate(x=0.1000, y=-0.2000, z=0.0700)\r\n\t\tStereo.append(CameraR)\r\n\t\tCameraR.properties(capturing = True)\r\n\t\tCameraR.properties(cam_width = 320)\r\n\t\tCameraR.properties(cam_height = 240)\r\n\t\tCameraR.properties(cam_focal = 25.0000)\r\n\t\tCameraR.add_stream(\"ros\",topic='cameraR')\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t\r\n\t\t\r\n\r\n\t\tprint(\"bge alive\")\r\n\r\n"}}