logo logo
Home arrow Forums...
Friday, 05 December 2008
 
 
English English  Español Español  
Upcoming Events
10.Jun. 2009

IWANN 2009
Salamanca, Spain
International Work-Conference on Artificial Neural Networks
11.Jun. 2009

Toward a Science of Consciousness
Hong Kong, China
15.Jun. 2009

International Workshop on Machine Consciousness
Hong Kong, China
15.Jun. 2009

The 8th IEEE International Conference on Cognitive Informatics
Hong Kong, China
22.Jun. 2009

IWINAC 2009
Santiago de Compostela, Spain
Work-Conference in the Interplay between Natural and Artificial Computation
Tag Cloud
Architectures Artificial Associations Books Conferences Conscious Consciousness Developer Documentación Documentation Español Machine Machine Consciousness Machines Neuroscience Publications Research Researchers Reviews Robotics Robots Spanish Studio VPL
Spotlight
Syndicate
 Conscious Robots RSS FeedConscious Robots RSS Feed
Conscious-Robots.com Forum  


carlcs
User

Expert Boarder
Posts: 20
graphgraph
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...
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 434
graph
Karma: 6  
Re:logged differential drive - 2008/10/12 13:42 I see what you've done That is really the quick way, however, you are depending on the simulation environment, which you don't really need. If you're going to use your log reader service extensively you should get rid of the simulated sonar entity and raytracing stuff..

Regarding the differential drive stuff, if I understood it correctly, you just need to update pose and orientation from a log file, right? Then, why do you need any interfacing with the differential drive at all?? If you are building a mapping service that takes as input either the sonar data (from your sonar data log reader) and pose (from your pose data log reader), you don't need to rely in any diff drive. As I see it, you just need to write a service that posts pose updates.

Now the problem you have in synchronization: in order to build a correct map you need to know which pose corresponds to which sonar reading. Do you have a timestamp in your log file? If so, you could use the time stamp to associate sonar and pose data. Otherwise, you could just try and sych sonar and pose data retrieval... But get some sleep before trying this!
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
carlcs
User

Expert Boarder
Posts: 20
graphgraph
Karma: 1  
Re:logged differential drive - 2008/10/12 17:05 there is no time stamp so i'm having problems with synchronization.

but yes. sleep seems very enticing. hahaha
  The administrator has disabled public write access. Please, register to participate in the forum.





Lost Password?
No account yet? Register
Last Posts in Forum
 
Top! Top!