Menu

BDI Agent to receive and react to temperature information i a sensing network

Help
Sandra
2017-04-24
2017-04-25
  • Sandra

    Sandra - 2017-04-24

    Hi All,

    I currently need to develop a BDI Agent that will run on my laptop. It will communicate with a raspberry pi. This pi has a temperature sensor to measure the environment temperature and send this data to the BDI agent to react on it. The temeperature values might be included in a file or printed on the console. I have a good idea how i will programm the pi to do it. However i can't find out how the code of the BDI agent should be. Does anyone have an idea ?

    Best Regards,
    Sandra

     
  • Lars Braubach

    Lars Braubach - 2017-04-25

    Hi Sandra,

    you need to know how to access the sensor from Java. Then you can use that code in the same way in a micro or bdi agent. If you need to poll the sensor in intervals you could e.g. use a component step that is rescheduled again and again.

    Best
    Lars

     
  • Sandra

    Sandra - 2017-04-25

    Thank you so much for your help.- I laready have an idea how i will aceess the sensor from JAVA so i hope i can do it. But i still have no idea howa the other BDI agent on the laptop whuch will receive the data from the pi agent should be configured . Can anyone help me ?

    Kind Regards,
    Sandra

     
  • sdr3

    sdr3 - 2017-04-28

    Hi Sandra,

    As shown in the BDIv3 tutorials for beliefs, you can implement a belief as getter/setter methods. This would allow you to do some retrieving processes inside the getter method. you can then make the belief dynamically update with:

    @Belief(updaterate=1000) --> updates the sensor belief every second
    @Belief(dynamic=true, beliefs={"otherbelief"}) --> updates when other beliefs change

    Alternatively, you can manually update the belief by calling the setter method. feel free to check out the tutorial for more info :)

     
  • Sandra

    Sandra - 2017-05-22

    Hi all,

    I am facing the following problem in my bachelor project. I have a BDI agent running on a raspberry pi.
    There is a CUL device for serialport communication attached to the pi that sends and receives signals to close and open a particular device.These signals are transmitted by a particular type of sensors.
    The idea is that the BDI agent should gather a signal and the time it occured and send it to another BDI agent.
    The current stage of the agent is that it connects to the CUL device in the agentbody and it includes serialwriter and serialreader classes (from the RXTX libabry) to enable the serial communication and once the agent gets the signal it insert it in a database. The agent does. not have a belief, plan or goal so far.
    However this is not what i aim to do. I want to programm the belief ,goals and plans of the agent in a way to enable it to provide a service to the agent, in which it sends this signal once the other agent requests its service or just sends it without the other requests it. Does anyone have an idea how i can do it ?

     

Log in to post a comment.

MongoDB Logo MongoDB