Revision 1d1281cc scout/scoutsim/src/sim_frame.cpp

View differences:

scout/scoutsim/src/sim_frame.cpp
114 114
                                       &SimFrame::killCallback, this);
115 115

  
116 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);
117
        wireless_receive = nh.advertise< ::messages::WirelessPacket>("/wireless/receive", 1000); 
118
        wireless_send = nh.subscribe("/wireless/send", 1000, &SimFrame::wirelessCallback, this);
119 119

  
120 120
        ROS_INFO("Starting scoutsim with node name %s",
121 121
                 ros::this_node::getName().c_str()) ;
......
335 335
        return true;
336 336
    }
337 337

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

Also available in: Unified diff