[robocup-rescue-s] A question about channel based communication

From: Nobel Huang <nobel1984@gmail.com>
Date: Wed 04 Apr 2007 - 15:29:00 GMT

Dear all,

I found that the channel type CHANNEL_SAY in the new kernel
(rescue-0.50.0) would not work properly.
As mentioned in the config.txt,
           channel_say_count : 1
           channel_radio_count : 10
I would expect that there would be 11 channels to use in a specific
simulation. However, when I check the kernel.cc, I found that the code
is like this below

channelCount = channelSayCount + channelRadioCount;
for (INT_32 i=0; i<channelSayCount; i++)
{
        ChannelInfo* chInfo = new ChannelInfo();
        chInfo->type = CHANNEL_SAY;
        m_channels[i] = chInfo;
}

for (INT_32 i=0; i<channelRadioCount; i++)
{
        ChannelInfo* chInfo = new ChannelInfo();
        chInfo->type = CHANNEL_RADIO;
        m_channels[i] = chInfo;
}

You can see the two INT_32 i are both initial 0. If I had not
misunderstood the code, I could make sure that the first channel for
CHANNEL_SAY would be overlaid by the first RADIO channel. That is to
say, there will not be say channel any more.

Maybe it is for some special purpose, and I would like know why. Does
anyone have the key for this?

Regards,
Nobel Huang
_______________________________________________
robocup-rescue-s mailing list
robocup-rescue-s@cc.gatech.edu
https://lists.cc.gatech.edu/mailman/listinfo/robocup-rescue-s
Received on Wed Apr 04 17:36:08 2007

This archive was generated by hypermail 2.1.8 : Wed 04 Apr 2007 - 15:36:13 GMT