Revision 82f3f746 scout/scoutsim/src/sim_frame.cpp

View differences:

scout/scoutsim/src/sim_frame.cpp
113 113
        kill_srv = nh.advertiseService("kill",
114 114
                                       &SimFrame::killCallback, this);
115 115

  
116
        // Subscribe and publisher wirless from robots
117
        wireless_receive = node.advertise<::messages::WirelessPacket>("/wireless/receive", 1000); 
118
        wireless_send = node.subscribe("/wireless/send", 1000, &SimFrame::wirelessCallback, this);
119

  
116 120
        ROS_INFO("Starting scoutsim with node name %s",
117 121
                 ros::this_node::getName().c_str()) ;
118 122

  
......
331 335
        return true;
332 336
    }
333 337

  
338
    void wirelessCallback(const ::messages::WirelessPacket::ConstPtr& msg)
339
    {
340
        wireless_receive.publish(msg);
341
    }
334 342
}

Also available in: Unified diff