Go to Post “FIRST is your experience and you cannot let anyone else hinder what you can achieve.” - fuzzwaz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2017, 08:18
cnc4 cnc4 is offline
Registered User
FRC #2231 (OnyxTronix)
Team Role: Programmer
 
Join Date: Jul 2016
Rookie Year: 2015
Location: Israel
Posts: 21
cnc4 is an unknown quantity at this point
No robot code

After installing all libraries and imaging the roborio the code seems not to be working sometimes (after several deploys in a row without restarting the roborio).

Every deploy I get a cameraserver exceptions but I choose to ignore it because the code is working fine. But I do get a specific warning when the code fails to run, i will edit this post as soon as i will get it but until then, the warning says that there is a TCP bind on a used port if i remember correctly.

I guess that this is a bug and I would like to see if other teams got this problem too, I hope WPILIB devs will see this post.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2017, 08:40
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 146
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: No robot code

Either post your code here or PM it to me and I will take a look.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2017, 08:52
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 146
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: No robot code

Actually, take a look at this ScreenSteps article. I think it will solve your problem.

http://wpilib.screenstepslive.com/s/4485/m/13809/l/681690
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2017, 09:49
cnc4 cnc4 is offline
Registered User
FRC #2231 (OnyxTronix)
Team Role: Programmer
 
Join Date: Jul 2016
Rookie Year: 2015
Location: Israel
Posts: 21
cnc4 is an unknown quantity at this point
Re: No robot code

Quote:
Originally Posted by AustinShalit View Post
Actually, take a look at this ScreenSteps article. I think it will solve your problem.

http://wpilib.screenstepslive.com/s/4485/m/13809/l/681690
Well, I comented everything in init robot so I did not thought that this could happend because of other running code. Thank you, I think that solves the problem
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2017, 18:30
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Edwan Vi
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 26
tkdberger is an unknown quantity at this point
Question Re: No robot code

Having a similar issue in c++. I've deployed the code several times now to no avail.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2017, 00:07
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 146
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: No robot code

Quote:
Originally Posted by tkdberger View Post
Having a similar issue in c++. I've deployed the code several times now to no avail.
Does the Driver Station console show any errors?
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2017, 08:10
cnc4 cnc4 is offline
Registered User
FRC #2231 (OnyxTronix)
Team Role: Programmer
 
Join Date: Jul 2016
Rookie Year: 2015
Location: Israel
Posts: 21
cnc4 is an unknown quantity at this point
Re: No robot code

Quote:
Originally Posted by AustinShalit View Post
Does the Driver Station console show any errors?
The same thing still happens, it didnt solved my problem eventually .

As I said in the post, its says that the TCP conection is already exist in this port and its faild to Bind();.

Thanks for you help!
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2017, 09:19
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 146
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: No robot code

Quote:
Originally Posted by cnc4 View Post
As I said in the post, its says that the TCP conection is already exist in this port and its faild to Bind();.
Can you either send me your code or post it here?
__________________
Reply With Quote
  #9   Spotlight this post!  
Unread 13-01-2017, 09:43
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 395
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: No robot code

Quote:
Originally Posted by AustinShalit View Post
Actually, take a look at this ScreenSteps article. I think it will solve your problem.

http://wpilib.screenstepslive.com/s/4485/m/13809/l/681690
Or Thread.setDaemon(true) will allow the JVM to exit while the thread is still running
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #10   Spotlight this post!  
Unread 14-01-2017, 09:24
cnc4 cnc4 is offline
Registered User
FRC #2231 (OnyxTronix)
Team Role: Programmer
 
Join Date: Jul 2016
Rookie Year: 2015
Location: Israel
Posts: 21
cnc4 is an unknown quantity at this point
Re: No robot code

Quote:
Originally Posted by AustinShalit View Post
Can you either send me your code or post it here?
How do you want me to send the code? I don't know any good upload site.

This error also occurs in a simple project so I don't know if it will make any difference.

Edit: the error:
Code:
NT: ERROR: bind() to port 1735 failed: Address already in use (TCPAcceptor.cpp:108)

Last edited by cnc4 : 14-01-2017 at 09:29.
Reply With Quote
  #11   Spotlight this post!  
Unread 29-01-2017, 14:56
mikearnold514 mikearnold514 is offline
Registered User
FRC #0514
 
Join Date: Jan 2017
Location: Miller Place, NY
Posts: 4
mikearnold514 is an unknown quantity at this point
Re: No robot code

@AustingShalit
I was looking at issue #465 in GitHub and noticed that this issue was not assigned yet. My team, 514 Miller Place, is having the same issue as reported here. Was wondering if anyone was working this issue and if there was an update.
Kind Regards,
Mike
Reply With Quote
  #12   Spotlight this post!  
Unread 30-01-2017, 20:41
mikearnold514 mikearnold514 is offline
Registered User
FRC #0514
 
Join Date: Jan 2017
Location: Miller Place, NY
Posts: 4
mikearnold514 is an unknown quantity at this point
Re: No robot code

Just following up to see if anyone had a resolution to this problem. My team is still experiencing the issue. Will be in the tech room tomorrow night. Was hoping to discuss this with someone to get some ideas on how best to troubleshoot.
Thanks!
Mike
Reply With Quote
  #13   Spotlight this post!  
Unread 01-02-2017, 08:50
mikearnold514 mikearnold514 is offline
Registered User
FRC #0514
 
Join Date: Jan 2017
Location: Miller Place, NY
Posts: 4
mikearnold514 is an unknown quantity at this point
Re: No robot code

@Austin
We got around the error we were having with the NT bind() as originally reported here. I updated the GitHub ticket #465 with our code and findings. In short, for anyone looking here, we moved the CameraServer.getInstance().startAutomaticCapture() out of the class constructor of our subsystem and into a regular public method in our subsystem then called that method from RobotInit() like this: Robot.visionUtil.startImageProcessing(); Obviously, folks will use whatever naming is suitable for them. Also, not everyone is using the CommandBasedRobot framework so it might be different for those folks but this is the general idea.

I hope folks find this information helpful and I appreciate the support you have given. You will see in the ticket that I did ask you to review the code as we are not getting any meaningful data from the Pipeline but we can move that to a different topic thread if you think that is best.

Thanks again Austin and kindest regards,
Mike Arnold, Team 514.
Reply With Quote
  #14   Spotlight this post!  
Unread 01-02-2017, 18:16
cnc4 cnc4 is offline
Registered User
FRC #2231 (OnyxTronix)
Team Role: Programmer
 
Join Date: Jul 2016
Rookie Year: 2015
Location: Israel
Posts: 21
cnc4 is an unknown quantity at this point
Re: No robot code

Quote:
Originally Posted by mikearnold514 View Post
@Austin
We got around the error we were having with the NT bind() as originally reported here. I updated the GitHub ticket #465 with our code and findings. In short, for anyone looking here, we moved the CameraServer.getInstance().startAutomaticCapture() out of the class constructor of our subsystem and into a regular public method in our subsystem then called that method from RobotInit() like this: Robot.visionUtil.startImageProcessing(); Obviously, folks will use whatever naming is suitable for them. Also, not everyone is using the CommandBasedRobot framework so it might be different for those folks but this is the general idea.

I hope folks find this information helpful and I appreciate the support you have given. You will see in the ticket that I did ask you to review the code as we are not getting any meaningful data from the Pipeline but we can move that to a different topic thread if you think that is best.

Thanks again Austin and kindest regards,
Mike Arnold, Team 514.
https://github.com/wpilibsuite/allwp...ment-276674779

You wanted a feedback on your code:
My team and me made a visionSensor that implements PIDSource, this sensor is not an subsystem and it return a pidValue in pidGet.
So you can use it inside a PIDController.
Make a pidVisionSourceType to choose what will get in pidValue.
Hope this helps you .
Reply With Quote
  #15   Spotlight this post!  
Unread 02-02-2017, 09:46
mikearnold514 mikearnold514 is offline
Registered User
FRC #0514
 
Join Date: Jan 2017
Location: Miller Place, NY
Posts: 4
mikearnold514 is an unknown quantity at this point
Re: No robot code

Thanks for the feedback. We were also considering PID Control and would likely try a PID Subsystem. We will definitely consider your approach. We happen to be stuck on trying to get meaningful data from our VisionPipeline and it is likely something silly we are doing that is holding us up now.

As for the original error, I am concluding that by your reply you are past this issue. If that is the case then I would recommend we tell Austin and the WPILib development team that they can close issue #465, if it has not been closed already. But since you opened the issue originally, I will leave that action to you.

Kind Regards,
Mike
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi