I’ve been pulling my hair out for the past few hours trying to get this to work!
I’ve been testing some code with the Robot Simulator - mainly playing around with SwevePoseEstimator and tracking where the simulated robot is on the field. All good with that!
Then I wanted to see if I could incorporate the limelight into that (team let me take home the LL). I keep running into the problem:
lljson error: No content to map due to end-of-input
at [Source: (String)""; line: 1, column: 0]
I’ve tried a few things and this leads me to believe that I can’t access the limelight from robot simulator/shuffleboard. Since the limelight is plugged into my router through Ethernet and I think the robot simulator creates it’s own server, the network tables aren’t picking up the LL.
Is there anyway I can access the LL over the network with simulator? I can access the LL across my network through my browser and see the feed, I just can’t get it to populate into the robot simulators network tables.
I actually figured this out a while back. You can access the limelight from simulation you just need to rename your computer so Windows automatically creates a DNS entry for it. Mine is named: RoboRIO-6391-frc. You will want to replace with your team number.
This basically tricks the LL into thinking your computer is a roboRIO.
I have my limelight and desktop each connected to my router by Ethernet. Since the limelight is not directly connected to the computer would the robot simulator be able to see it across the network?
It’s not the end of the world, but now I wish knew more about networking.
Are you running Windows 11? Different operating systems do different things.
Yes both are on my network. The limelight is looking for a NT host. It automatically looks for the roboRIO which is either at 10.TE.AM.2 (so you could also create your home network to be on this subnet (but that is a pain) or it uses DNS to look for the roboRIO (at whatever IP it has) which is always roboRIO-TEAM#-frc