Eclpise plugin problem

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: imaqine, 99jonathan, roger

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Eclpise plugin problem

Postby potwork » Wed Feb 15, 2017 5:23 pm

Hello im working with an older project made under lejos 0.85 so i installed lejos 0.85 and its working fine but when i try upload it to nxt with Eclipse plugin 0.9 its not working. Is it possible to donwload an older version of eclipse plugin?

User avatar
gloomyandy
leJOS Team Member
Posts: 5775
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Eclpise plugin problem

Postby gloomyandy » Wed Feb 15, 2017 5:52 pm

0.85 is pretty old! But all of our releases are available here...
https://sourceforge.net/p/lejos/nxt/cod ... tree/tags/

You may have to build a version yourself (instructions and build files are provided) as I don't think we have an archive of the plugin release files. To be honest I've never really understood this side of leJOS very well, so probably can't help much more!

Good luck!
leJOS news https://lejosnews.wordpress.com/

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Re: Eclpise plugin problem

Postby potwork » Thu Feb 16, 2017 7:33 am

gloomyandy wrote:0.85 is pretty old! But all of our releases are available here...
https://sourceforge.net/p/lejos/nxt/cod ... tree/tags/

You may have to build a version yourself (instructions and build files are provided) as I don't think we have an archive of the plugin release files. To be honest I've never really understood this side of leJOS very well, so probably can't help much more!

Good luck!


Thank you, but cant find out how to build that plugin :/

User avatar
gloomyandy
leJOS Team Member
Posts: 5775
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Eclpise plugin problem

Postby gloomyandy » Thu Feb 16, 2017 8:26 am

leJOS news https://lejosnews.wordpress.com/

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Re: Eclpise plugin problem

Postby potwork » Thu Feb 16, 2017 9:38 pm

gloomyandy wrote:So did you read this?
https://sourceforge.net/p/lejos/nxt/cod ... _HOWTO.txt



yes but that manual is for 0.9.0, tried and working for 0.9.0 ,but not working for 0.85 :/

User avatar
gloomyandy
leJOS Team Member
Posts: 5775
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Eclpise plugin problem

Postby gloomyandy » Thu Feb 16, 2017 10:12 pm

I'm sure the process will be similar, you will just have to work it out. There are build files, so it shouldn't be that hard. Sorry but that's all there is. As I said 0.85 is very old, last update was 2009!

Maybe it would be easier just to update your project to a later version of leJOS?
leJOS news https://lejosnews.wordpress.com/

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Re: Eclpise plugin problem

Postby potwork » Sun Feb 19, 2017 7:47 pm

i gived up the plugin. trying update it to 0.9 but dont know how to remake the SimpleNavigator,

this is what i found on lejos.org but that class PathController doesn't exist in latest version of lejos.

The LegacyNavigator class is a renamed version of SimpleNavigator in the 0.85 release
This class will disappear in NXJ version 1.0. Use a PathController instead. (lejos.robotics.navigation.PathController)

User avatar
gloomyandy
leJOS Team Member
Posts: 5775
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Eclpise plugin problem

Postby gloomyandy » Sun Feb 19, 2017 8:18 pm

As you may expect lots of things have changed from 0.85 to the latest release. I think you should be able to use the LegacyNavigator class instead of your SimpleNavigator. have you tried doing this? You may need to make other changes. If you want to update things to use the latest code then you probably need to switch to using the Navigator class, or possibly the Pilot class possibly with a Pose class, it all depends how you are currently using SimpleNavigator.
leJOS news https://lejosnews.wordpress.com/

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Re: Eclpise plugin problem

Postby potwork » Mon Feb 20, 2017 9:47 am

it says LegacyNavigator is deprecated.

this is what i need to deal with.
compassPilot is deprecated, TachoPilot and SimpleNavigator classes cannot be resolved.

Code: Select all

CompassPilot compil = new CompassPilot(CS, 49, 125, Motor.C, Motor.B);
      TachoPilot tacho = new TachoPilot(49, 125, Motor.C, Motor.B);
      SimpleNavigator simnav = new SimpleNavigator(tacho);


simplenavigator is used to navigate the robot, for exmaple when its close to wall with simplenavigator the robot rotates 90 degreess right.

User avatar
gloomyandy
leJOS Team Member
Posts: 5775
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Eclpise plugin problem

Postby gloomyandy » Mon Feb 20, 2017 9:53 am

Deprecated does not mean it no longer works, just that for new projects it is not recommended. Given that virtually no work is being done on the NXT version of leJOS these days I don't think you need to worry, just get your code working and move on.

I see you are are using the compass navigator, I have never seen that code work very well, so good luck with it! In m experience you pretty much always get better performance from a well configured DifferentialPilot. You will need to spend time adjusting the wheel diameter and spacing to get accurate movement and turns, but you can get good accuracy. You will have problems though if your robot moves on different types of surface.

Perhaps it you provided more details of your complete project (and why you have such old code to work with), it would be possible to offer better advice.
leJOS news https://lejosnews.wordpress.com/

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Re: Eclpise plugin problem

Postby potwork » Mon Feb 20, 2017 12:19 pm

Oh i did not know that deprecated classes can be used.

i have to try improve this project https://github.com/PeterOrneholm/penemunxt with kalman filter and compare the results.
Code for robot is in ExplorerClient project

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Re: Eclpise plugin problem

Postby potwork » Mon Feb 20, 2017 5:46 pm

ok i fixed the robot code, there is only 1 error left in communication.

Code: Select all

                this.setDataIn(Connection.getDataIn());
      this.setDataOut(Connection.getDataOut());


The method getDataIn() is undefined for the type NXTConnector.

User avatar
gloomyandy
leJOS Team Member
Posts: 5775
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Eclpise plugin problem

Postby gloomyandy » Mon Feb 20, 2017 7:02 pm

You need to use getInputputStream and getOutputStream, you may need to wrap this in a DataInputStream/DataOutputStream, but really this should all be pretty obvious by looking at the API...
http://www.lejos.org/nxt/pc/api/lejos/p ... ector.html

If this is some sort of College/School/University project perhaps you should be talking with your tutor/professor/teacher about these sorts of things...
leJOS news https://lejosnews.wordpress.com/

potwork
New User
Posts: 8
Joined: Wed Feb 15, 2017 5:16 pm

Re: Eclpise plugin problem

Postby potwork » Mon Feb 20, 2017 7:44 pm

ty i will look on it,

yes its an University project, problem is just that the professor is 60 years old and know nothing about propramming, know just the theory for kalman filter.


Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 3 guests