I've posted this idea of a NXT simulator already as a wish to the old nxtasy forum.
The usage though will be quite limeted , because how do you think the single sensor values could be entered?
As you can't plug any sensors to the PC you will probably have to enter all virtual values manually, and as there are no motors running you can't poll any encoders, and thus all what you get is sort of a snap shot mode.
So the NXT simulation probably will be restricted to complete complex robotic models in a complete specific virtual environment, e.g. a line follower tribot with a light sensor down to the ground and a bumper touch sensor at the front which is running along a black virtual line. Here you may enter your line follower code and the simulator processes it in the virtual world by calculating the predicted moves of the model and thus the predicted consequential sensor values (e.g. of the light sensor seeking the black line). That's in fact a simulation model that's featured by nxtOSEK.
http://lejos-osek.sourceforge.net/ecrobot_nxt.htm
Or you may have a tribot with a compass and a US sensor at the front running in a virtual labyrinth, and here you may test maze solver programs.
So I suppose for each specfic environment and robot construction you will have to use and build a specific unique simulator program.
Simulating NXC Code?
-
- Posts: 103
- Joined: 29 Sep 2010, 17:14
- Location: US
Re: Simulating NXC Code?
oniric, as it is apparent that there is no current NXT simulator, why not just work with others across the web? Stryker talks about this in this in an earlier discussion: https://sourceforge.net/apps/phpbb/mind ... p?f=4&t=45
fuzzball27 >>-->
Re: Simulating NXC Code?
Can you post a .exe file for it?
Thanks, and have a nice day,
nxtboy III
programnxt.com
nxtboy III
programnxt.com
Re: Simulating NXC Code?
Check out Xander's Blog.
Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Re: Simulating NXC Code?
nice, but it's RobotC, not NXC
Re: Simulating NXC Code?
Ah, Doc, you forgot to RTFA (read the fine article).
- Xander
Make sure you read before you write, next time. This is going to be a firmware emulation system, so compiled NXC code (which is the same as compiled NXT-G code) will work just fine.The goal of the project over the next three years is to enable students to program their robots in the virtual world using the same programming language that they use when they program their robots in the real world (NXTG, LabVIEW, ROBOTC)
- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Re: Simulating NXC Code?
I apologize masta, I didn't realize the whole bandwidth of this project. I just read unforgivably
ps: is it supposed to work for enhanced NXC fw code too?By May next year, students should be able to use ROBOTC to program their virtual robots.
Re: Simulating NXC Code?
I don't know, actually. I think they will probably focus on implementing the standard firmware. All I know about this project is what it says on the project's website. I will be sure to post more as the project develops.ps: is it supposed to work for enhanced NXC fw code too?
- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Who is online
Users browsing this forum: Semrush [Bot] and 2 guests