Closed pringlized closed 9 years ago
Can't believe I missed this in the PRE-INITIALIZATION:
Method SCA_ISensor.frequency is deprecated, please use SCA_ISensor.skippedTicks instead.
/usr/local/Cellar/morse-simulator/1.3/lib/python3.4/site-packages/morse/core/object.py:56
Found the API for the Blender 2.75 release: http://www.blender.org/api/blender_python_api_2_75_release/bge.types.SCA_ISensor.html?highlight=sca_isensor
And here is the API for the 2.74 release: http://www.blender.org/api/blender_python_api_2_74_release/bge.types.SCA_ISensor.html?highlight=sca_isensor
Newest version of Blender (as of July 1st) isn't using SCA_ISensor.frequency any longer. I installed 2.74 and everything works fine now!
Sorry to take up a thread since I solved my own problem but hopefully this info might help in future releases.
$ morse run tutorial-1-sockets.py
* Loading simulation </Users/jim/Dev/morse-sim/tutorials/tutorial-1-sockets.py>.
* morse 1.3-dirty
* MORSE has only been tested on Linux. It may work
on other operating systems as well, but without any guarantee
* Version 2.74.0 of Blender is untested but should work
ndof: 3Dx driver not found
found bundled python: /Applications/Blender/blender.app/Contents/MacOS/../Resources/2.74/python
read blend: /usr/local/share/morse/data/morse_default_autorun.blend
morse.sensors.collision.Collision: no interfaces available for this component! Trying to use default one for socket.
Detected GL_ARB_texture_env_combine
Detected GL_ARB_texture_cube_map
Detected GL_ARB_multitexture
Detected GL_ARB_shader_objects
Detected GL_ARB_vertex_shader
Detected GL_ARB_fragment_shader
Detected GL_ARB_vertex_program
Detected GL_ARB_depth_texture
Detected GL_EXT_separate_specular_color
Blender Game Engine Started
==============================
Welcome to the MORSE simulator
==============================
[PRE-INITIALIZATION]
[ 0.011] Python Version: 3.4.2
[ 0.011] Blender Version: 2.74.0
[ 0.011] Python path: ['/usr/local/share/morse/data', '/usr/local/share/morse/data/props', '/usr/local/share/morse/data/environments/indoors-1', '/usr/local/share/morse/data/actuators', '/usr/local/share/morse/data/sensors', '/usr/local/share/morse/data/robots', '/Applications/Blender/blender.app/Contents/Resources/2.74/scripts/addons', '/Applications/Blender/blender.app/Contents/Resources/2.74/scripts/modules', '/Applications/Blender/blender.app/Contents/Resources/2.74/scripts/startup', '/Applications/Blender/blender.app/Contents/MacOS/../Resources/2.74/scripts/modules', '/usr/local/Cellar/morse-simulator/1.3/bin', '/Library/Frameworks/Python.framework/Versions/3.4/bin/python3', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python34.zip', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/plat-darwin', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages', '/usr/local/Cellar/morse-simulator/1.3/lib/python3.4/site-packages', '/Applications/Blender/blender.app/Contents/Resources/2.74/python/lib/python34.zip', '/Applications/Blender/blender.app/Contents/Resources/2.74/python/lib/python3.4', '/Applications/Blender/blender.app/Contents/Resources/2.74/python/lib/python3.4/plat-darwin', '/Applications/Blender/blender.app/Contents/Resources/2.74/python/lib/python3.4/lib-dynload', '/Applications/Blender/blender.app/Contents/Resources/2.74/python/lib/python3.4/site-packages', '/Applications/Blender/blender.app/Contents/MacOS/../Resources/2.74/scripts/freestyle/modules', '/Applications/Blender/blender.app/Contents/Resources/2.74/scripts/addons/modules', '/Users/jim/Library/Application Support/Blender/2.74/scripts/addons/modules', '/usr/local/Cellar/morse-simulator/1.3/lib/python3.4/site-packages/morse/blender', '/usr/local/Cellar/morse-simulator/1.3/lib/python3.4/site-packages/morse/blender/human_interaction']
[ 0.011] PID: 28696
[ 0.011] [core.morse_time] Morse configured in Best Effort Mode
[ 0.012] Added RedBox as a active object
[ 0.012] Added GreenBox as a active object
[ 0.012] Added BlueBox as a active object
[ 0.090] [robots.atrv] atrv initialization
[ 0.090] [robots.atrv] Component initialized
[ 0.140] [actuators.v_omega] atrv.motion initialization
[ 0.140] [actuators.v_omega] Component initialized
[ 0.140] Component atrv.motion added to atrv
[ 0.236] [sensors.pose] atrv.pose initialization
[ 0.238] [sensors.pose] Component initialized, runs at 60.00 Hz
[ 0.238] Component atrv.pose added to atrv
[ 0.330] [actuators.light] atrv.light initialization
[ 0.330] [actuators.light] Component initialized
[ 0.330] Component atrv.light added to atrv
[ 0.330] [sensors.collision] atrv.collision initialization
[ 0.330] [core.object] Can't get frequency for atrv.collision as the Game Logic sensor calling the action can't be found.
[ 0.331] [sensors.collision] Component initialized, runs at 60.00 Hz
[ 0.331] Component atrv.collision added to atrv
[ 0.533] [sensors.video_camera] atrv.videocamera initialization
[ 0.533] [sensors.camera] atrv.videocamera initialization
[ 0.534] [sensors.camera] Adding scene S.256x256
[ 0.534] [sensors.camera] Component initialized, runs at 20.00 Hz
[ 0.536] [sensors.video_camera] Component initialized, runs at 20.00 Hz
[ 0.536] Component atrv.videocamera added to atrv
[ 0.582] [sensors.proximity] atrv.proximity initialization
[ 0.582] [sensors.proximity] Component initialized, runs at 12.00 Hz
[ 0.583] Component atrv.proximity added to atrv
[ 0.630] [actuators.gripper] atrv.gripper initialization
[ 0.630] [actuators.gripper] Component initialized
[ 0.631] Component atrv.gripper added to atrv
[SUPERVISION SERVICES INITIALIZATION]
[ 0.639] No multi-node scene configuration file found. Multi-node support disabled.
[ 0.681] [middleware.socket_request_manager] Socket service manager now listening on port 4000.
[ 0.682] [core.services] Successfully initialized the morse.middleware.socket_request_manager.SocketRequestManager request manager.
[ 0.682] Adding 'morse.middleware.socket_request_manager.SocketRequestManager' to the middlewares for time control
[ 0.682] [core.request_manager] Socket service manager: Synchronous service 'mode' for component 'time' successfully registered
[ 0.682] [core.request_manager] Socket service manager: Synchronous service 'now' for component 'time' successfully registered
[ 0.682] [core.request_manager] Socket service manager: Asynchronous service 'sleep' for component 'time' successfully registered
[ 0.682] [core.request_manager] Socket service manager: Synchronous service 'statistics' for component 'time' successfully registered
[ 0.682] Adding 'morse.middleware.socket_request_manager.SocketRequestManager' to the middlewares for simulation control
[ 0.682] [core.request_manager] Socket service manager: Synchronous service 'activate' for component 'simulation' successfully registered
[ 0.682] [core.request_manager] Socket service manager: Synchronous service 'deactivate' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'details' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'get_camarafp_projection_matrix' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'get_scene_objects' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'list_robots' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'quit' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'reset_objects' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'restore_dynamics' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'set_camarafp_far_clip' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'set_camarafp_position' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'set_camarafp_projection_matrix' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'set_camarafp_transform' for component 'simulation' successfully registered
[ 0.683] [core.request_manager] Socket service manager: Synchronous service 'set_log_level' for component 'simulation' successfully registered
[ 0.684] [core.request_manager] Socket service manager: Synchronous service 'set_object_dynamics' for component 'simulation' successfully registered
[ 0.684] [core.request_manager] Socket service manager: Synchronous service 'set_object_visibility' for component 'simulation' successfully registered
[ 0.684] [core.request_manager] Socket service manager: Synchronous service 'suspend_dynamics' for component 'simulation' successfully registered
[ 0.684] [core.request_manager] Socket service manager: Synchronous service 'terminate' for component 'simulation' successfully registered
[ 0.684] Adding 'morse.middleware.socket_request_manager.SocketRequestManager' to the middlewares for communication control
[ 0.684] [core.request_manager] Socket service manager: Synchronous service 'distance_and_view' for component 'communication' successfully registered
[SUPERVISION SERVICES INITIALIZED]
[SCENE INITIALIZATION]
[ 0.684] [core.request_manager] Socket service manager: Synchronous service 'get_configurations' for component 'atrv.motion' successfully registered
[ 0.684] [core.request_manager] Socket service manager: Synchronous service 'get_properties' for component 'atrv.motion' successfully registered
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'set_property' for component 'atrv.motion' successfully registered
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'set_speed' for component 'atrv.motion' successfully registered
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'stop' for component 'atrv.motion' successfully registered
[ 0.685] Component: 'atrv.motion' using middleware 'morse.middleware.socket_request_manager.SocketRequestManager' for services
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'get_configurations' for component 'atrv.proximity' successfully registered
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'get_local_data' for component 'atrv.proximity' successfully registered
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'get_properties' for component 'atrv.proximity' successfully registered
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'set_property' for component 'atrv.proximity' successfully registered
[ 0.685] [core.request_manager] Socket service manager: Synchronous service 'set_range' for component 'atrv.proximity' successfully registered
[ 0.686] [core.request_manager] Socket service manager: Synchronous service 'set_tracked_tag' for component 'atrv.proximity' successfully registered
[ 0.686] Component: 'atrv.proximity' using middleware 'morse.middleware.socket_request_manager.SocketRequestManager' for services
[ 0.686] [core.request_manager] Socket service manager: Synchronous service 'get_configurations' for component 'atrv.light' successfully registered
[ 0.686] [core.request_manager] Socket service manager: Synchronous service 'get_properties' for component 'atrv.light' successfully registered
[ 0.686] [core.request_manager] Socket service manager: Synchronous service 'set_property' for component 'atrv.light' successfully registered
[ 0.686] [core.request_manager] Socket service manager: Synchronous service 'toggle' for component 'atrv.light' successfully registered
[ 0.687] Component: 'atrv.light' using middleware 'morse.middleware.socket_request_manager.SocketRequestManager' for services
[ 0.687] [core.request_manager] Socket service manager: Asynchronous service 'capture' for component 'atrv.videocamera' successfully registered
[ 0.687] [core.request_manager] Socket service manager: Synchronous service 'get_configurations' for component 'atrv.videocamera' successfully registered
[ 0.687] [core.request_manager] Socket service manager: Synchronous service 'get_local_data' for component 'atrv.videocamera' successfully registered
[ 0.687] [core.request_manager] Socket service manager: Synchronous service 'get_properties' for component 'atrv.videocamera' successfully registered
[ 0.688] [core.request_manager] Socket service manager: Synchronous service 'set_property' for component 'atrv.videocamera' successfully registered
[ 0.689] Component: 'atrv.videocamera' using middleware 'morse.middleware.socket_request_manager.SocketRequestManager' for services
[ 0.689] [core.request_manager] Socket service manager: Synchronous service 'get_configurations' for component 'atrv.collision' successfully registered
[ 0.690] [core.request_manager] Socket service manager: Synchronous service 'get_local_data' for component 'atrv.collision' successfully registered
[ 0.690] [core.request_manager] Socket service manager: Synchronous service 'get_properties' for component 'atrv.collision' successfully registered
[ 0.690] [core.request_manager] Socket service manager: Synchronous service 'set_property' for component 'atrv.collision' successfully registered
[ 0.691] Component: 'atrv.collision' using middleware 'morse.middleware.socket_request_manager.SocketRequestManager' for services
[ 0.691] [core.request_manager] Socket service manager: Synchronous service 'get_configurations' for component 'atrv.pose' successfully registered
[ 0.691] [core.request_manager] Socket service manager: Synchronous service 'get_local_data' for component 'atrv.pose' successfully registered
[ 0.691] [core.request_manager] Socket service manager: Synchronous service 'get_properties' for component 'atrv.pose' successfully registered
[ 0.691] [core.request_manager] Socket service manager: Synchronous service 'set_property' for component 'atrv.pose' successfully registered
[ 0.691] Component: 'atrv.pose' using middleware 'morse.middleware.socket_request_manager.SocketRequestManager' for services
[ 0.691] Component: 'atrv.motion' using datastream 'morse.middleware.socket_datastream.SocketDatastreamManager'
[ 0.692] [core.request_manager] Socket service manager: Synchronous service 'list_streams' for component 'simulation' successfully registered
[ 0.692] [core.request_manager] Socket service manager: Synchronous service 'get_stream_port' for component 'simulation' successfully registered
[ 0.692] [core.request_manager] Socket service manager: Synchronous service 'get_all_stream_ports' for component 'simulation' successfully registered
[ 0.692] Datastream interface 'morse.middleware.socket_datastream.SocketDatastreamManager' created
[ 0.692] [middleware.socket_datastream] Socket Mw Server now listening on port 60000 for component atrv.motion.
[ 0.692] Component: 'atrv.proximity' using datastream 'morse.middleware.socket_datastream.SocketDatastreamManager'
[ 0.692] [middleware.socket_datastream] Socket Mw Server now listening on port 60001 for component atrv.proximity.
[ 0.692] Component: 'atrv.light' using datastream 'morse.middleware.socket_datastream.SocketDatastreamManager'
[ 0.693] [middleware.socket_datastream] Socket Mw Server now listening on port 60002 for component atrv.light.
[ 0.693] Component: 'atrv.videocamera' using datastream 'morse.middleware.socket_datastream.SocketDatastreamManager'
[ 0.702] [middleware.socket_datastream] Socket Mw Server now listening on port 60003 for component atrv.videocamera.
[ 0.702] Component: 'atrv.collision' using datastream 'morse.middleware.socket_datastream.SocketDatastreamManager'
[ 0.703] [middleware.socket_datastream] Socket Mw Server now listening on port 60004 for component atrv.collision.
[ 0.704] Component: 'atrv.pose' using datastream 'morse.middleware.socket_datastream.SocketDatastreamManager'
[ 0.705] [middleware.socket_datastream] Socket Mw Server now listening on port 60005 for component atrv.pose.
[ 0.706]
[ 0.707] ------------------------------------
[ 0.707] - SIMULATION SUMMARY -
[ 0.708] ------------------------------------
[ 0.708] Robots in the simulation:
[ 0.708] ROBOT: 'atrv'
[ 0.708] - Component: 'atrv.motion'
[ 0.709] - Component: 'atrv.pose'
[ 0.709] - Component: 'atrv.light'
[ 0.709] - Component: 'atrv.collision'
[ 0.709] - Component: 'atrv.videocamera'
[ 0.709] - Component: 'atrv.proximity'
[ 0.709] - Component: 'atrv.gripper'
[ 0.709] Available services:
[ 0.709] - Interface morse.middleware.socket_request_manager.SocketRequestManager
[ 0.709] - atrv.motion: ['get_properties', 'set_speed', 'stop', 'get_configurations', 'set_property']
[ 0.710] - atrv.proximity: ['set_range', 'get_properties', 'get_local_data', 'set_tracked_tag', 'get_configurations', 'set_property']
[ 0.710] - atrv.light: ['get_properties', 'set_property', 'get_configurations', 'toggle']
[ 0.710] - time: ['statistics', 'sleep', 'mode', 'now']
[ 0.710] - simulation: ['set_log_level', 'reset_objects', 'get_scene_objects', 'set_camarafp_projection_matrix', 'set_camarafp_position', 'set_camarafp_transform', 'suspend_dynamics', 'set_object_visibility', 'get_camarafp_projection_matrix', 'get_all_stream_ports', 'deactivate', 'set_object_dynamics', 'get_stream_port', 'terminate', 'activate', 'set_camarafp_far_clip', 'quit', 'restore_dynamics', 'details', 'list_streams', 'list_robots']
[ 0.710] - atrv.videocamera: ['get_local_data', 'set_property', 'get_configurations', 'get_properties', 'capture']
[ 0.710] - atrv.collision: ['get_properties', 'set_property', 'get_local_data', 'get_configurations']
[ 0.710] - atrv.pose: ['get_configurations', 'set_property', 'get_properties', 'get_local_data']
[ 0.710] - communication: ['distance_and_view']
[ 0.710] Modifiers in use:
[ 0.710] None
[ 0.710]
[ 0.710] Datastream interfaces configured:
[ 0.710] - 'morse.middleware.socket_datastream.SocketDatastreamManager'
[ 0.711] ------------------------------------
[ 0.711]
[SCENE INITIALIZED]
[ 1.945] [sensors.camera] Scene S.256x256 from dict_keys(['S.256x256', 'S.MORSE_LOGIC'])
[ 1.947] [sensors.camera] Focal length of the camera is: 35.0
[ 1.948] [sensors.camera] Near clipping distance of the camera is: 0.10000000149011612
[ 1.948] [sensors.camera] Far clipping distance of the camera is: 100.0
[ 1.948] [sensors.camera] Camera 'atrv.videocamera': Exporting an image of capsize: (256, 256) pixels
Yes, it is a change in blender API in 2.75. This is handled by a0364ae2ec3f819282b1d5037d7ec01483fcc83f in master and 54f1b72c0ab4291653daf394c0b5267dc5aead58 in 1.3_STABLE. But the release 1.3 does not have the patch
Thank you. Feel free to close the issue.
I'm new to Morse. Great project! I really appreciate all the work that has been put into it.
Installed it recently using the Homebrew instructions on my MacBookPro running Yosemite 10.10.3. Running the initial sockets tutorial and also connecting to it from a socket client works fine. I added a few things like a light, and had it just drive in a circle. No problem. But when I start adding a variety of sensors it errors out with: AttributeError: 'AlwaysSensor' object has no attribute 'frequency'
I tested a variety of sensors and most fail on creating the object: SemanticCamera, VideoCamera, SickLRDS, Proximity, etc.. But some do work like: Pose, Collision, etc..
Been digging through source code even though not very familiar with Blender's source or Morse. Haven't been able to nail down the culprit yet. Any help would be much appreciated. Thanks.
Running tutorial code with a Proximity sensor
Running tutorial WITHOUT Proximity sensor
Installing morse
Checking morse environment
Tutorial code with Proximity sensor
Client code