Revision 6ebee82c scout/scoutsim/src/sim_frame.cpp

View differences:

scout/scoutsim/src/sim_frame.cpp
132 132
        teleop_r_speed = 0;
133 133
        teleop_scoutname = "scout1";
134 134

  
135
        teleop_pub = nh.advertise<motors::set_motors>("/scout1/set_motors", 1000);
135
        teleop_pub = nh.advertise< ::messages::set_motors>("/scout1/set_motors", 1000);
136 136

  
137 137
        ROS_INFO("Starting scoutsim with node name %s",
138 138
                 ros::this_node::getName().c_str()) ;
......
241 241
    {
242 242
        std::stringstream ss;
243 243
        ss << "/" << req.scout_name << "/set_motors";
244
        teleop_pub = nh.advertise<motors::set_motors>(ss.str(), 1000);
244
        teleop_pub = nh.advertise< ::messages::set_motors>(ss.str(), 1000);
245 245
        teleop_scoutname = req.scout_name.c_str();
246 246
        ROS_INFO("Teleoping %s...",teleop_scoutname.c_str()); //debug statement
247 247

  
......
532 532
                break;
533 533
        }
534 534

  
535
        motors::set_motors msg;
535
        ::messages::set_motors msg;
536 536
        msg.fl_set = true;
537 537
        msg.fr_set = true;
538 538
        msg.bl_set = true;

Also available in: Unified diff