carlcs
User
 Expert Boarder
| Posts: 20 |   | Karma: 1
|
logged differential drive - 2008/10/12 01:35
i was able to get my logged sonar service to work. it's stupid but what i did was modify the simulated sonar so that every time it gets new readings, it will read the next line in the file. hehehe...
so, i was trying to make the same thing for the simulated differential drive. in the mapping service i'm using, it uses a drive listener to listen for updates and then gets the pose and orientation from the drive state to display it in a window where the map is like so
using drive = Microsoft.Robotics.Services.Drive.Proxy; . . .
public void UpdateDriveData(drive.DriveDifferentialTwoWheelState data) { labelDebug.Text = data.LeftWheel.MotorState.Pose.Position.X + ", " + data.LeftWheel.MotorState.Pose.Position.Z + "," data.LeftWheel.MotorState.Pose.Orientation.W; }
so, i looked for the file where the namespace Microsoft.Robotics.Services.Drive.Proxy. strangely enough, the file i have does not have any pose or orientation updates. so what i did was take the simulatedifferentialdrivett from the explorer sim sonar to add the pose part, added the log reading part and then used that for the window. unfortunately, this error appeared.
The type or namespace name 'DriveDifferentialTwoWheelState' does not exist in the namespace 'LoggedDifferentialDrive.Simulation.Drive.Proxy' (are you missing an assembly reference?)
which is strange because i have the assembly reference already. it's the same even if i used the simulateddifferentialdrivett.
so, if i were to do a similar approach to the on with the logged sonar sensor, where i just modified the simulatedsonar so that every raycast, a new line will be read from the file, how will i do this with the differential drive.
i'm at wits end already. i haven't even slept yet. hahaha...
|