Skip to content

Updating New Logic on VRSide for all Server-Based Connections #156

@jasmine-bae

Description

@jasmine-bae

i.e. depreciating all the ROS Connections and subscribers on Unity and making it work w/o it

Droneproperties.cs

  • Get rid of rosdroneconnection (more issues following :) )
    *note: SERVERSIDE should keep state of the drone rather than in here

Dronemenu.cs

  • Initialize menu without rosdroneconnection interfaces or ros connections in general
  • For getting lat/long/gps position/other drone menu items: we connect to ROStopic directly for these items.
  • Might need to be connected in serverconnections.cs
  • note* can be done easily (set it up that way), just needs to figure out how to get information about the drone normally found in rosdroneconnectioninterfaces, which are "hasauthority" and other state variables.

Waypoint.cs

  • Reference drone should be updated to drone_v2 but it might break stuff (i.e. when its called to super-class)
  • mydrone is currently casted to Drone_v2 to hold off from breaking stuff
  • used add operator -> needs to be downcasted. If not, it will cause a whole issue where Drone has parameters and attributes that Drone_v2 does not have (i.e. the addwaypoint and other waypoint functions in Drone might be set to some variables/hold info that creating a new Drone_v2 might lose) (Eric said this should work)
  • test new waypoint functions/everything changed in VR @PeruDayani

WaypointProperties.cs

  • Reference drone should be updated to drone_v2 but it might break stuff (i.e. when its called to super-class)

*note: drone subscribers is a whole 'nother issue
Drone.cs

  • sensor subscribers

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions