Python Ogre - Controlling an Imported Robot Arm Model via Keyboard?

Problems building or running the engine, queries about how to use features etc.
Post Reply
iiJDSii
Gnoblar
Posts: 1
Joined: Wed Feb 07, 2018 10:58 pm

Python Ogre - Controlling an Imported Robot Arm Model via Keyboard?

Post by iiJDSii »

I am new to Ogre, using a version of Python-Ogre that I found working with Python 2.7.

I have a CAD model of a robot arm, that I plan to convert to a .mesh file and then import into my Ogre application / python script. The model is a robot arm with 6 joints. What I'd like to do is programmatically rotate each joint based on a user keypress input.

E.g. if you push Q then the first joint rotates forward, if W then the second joint rotates forward, etc.

This is a high-level description of what I want to do, I reckon it should be possible based on what I've seen others do, but I'm not sure where to start with this, aside from converting my CAD model (from Solidworks) into a .mesh.

How should I get started?

What are the programming paradigms? Can I grab 'sub-entities' of my 'robot_arm.mesh' and then move them in the Python script? Are there special considerations I need from my CAD to be able to do this?

Thank you for any help, cheers.
Post Reply