Comments (2)
I'm assuming that you have added a method called getCbxConfig to the VirtualRobotController class. I'm also wondering whether you have added a setPosition method to the VirtualBot class. The VirtualBot class for this 2D simulator (virtual_robot) does not have such a method. Or, are you instead trying to do this on the 3D Physics-based simulator (vr_physics)? The solution to this issue will depend on which simulator you are working with. Either way, note that getVirtualBotInstance does not return the current robot; it creates an entirely new robot configuration object, which is not the object being manipulated in your active op mode. The VirtualRobotController class has a private field called bot, which is the current robot. You could add a public methed, getBot, and access the bot as follows: getVirtualRobotController().getBot();
If you are using the 2D simulator, you'll want a setPosition method in VirtualBot that is synchronized.
If you are using the 3D simulator, you'll need to call the setPosition method via a call to Platform.runLater, so it will execute on the UI thread.
from virtual_robot.
Thanks, it is now working.
from virtual_robot.
Related Issues (20)
- It should not be possible to obtain references to hardware before INIT button is pressed. HOT 1
- Telemetry behavior needs to follow FTC SDK more closely HOT 3
- Consider adding Amazon Corretto to JDK options HOT 1
- Virtual Controller joystick/trigger behavior HOT 6
- DigitalChannel and AnalogInput sensors are not showing up in the Config Display HOT 1
- Unable to run program (no configuration) HOT 6
- Add support for remote fields... HOT 6
- Add Differential swerve HOT 7
- I have a question-
- Error When Inititializing HOT 1
- Deadlock issue involving VirtualBot, BNO055IMUImpl, and GyroSensorImpl classes
- Virtual gamepad - snap back issue HOT 4
- pull_request_68 branch
- Application immediately crashes HOT 5
- Can't load process HOT 10
- left_motor in config not defined HOT 4
- Feature Request: Add Gradle Support HOT 2
- i'cant select the gamepad before or after init
- Error building with RR files HOT 3
- Road Runner Quickstart Instructions possibly outdated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual_robot.