ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ryuuka's profile - activity

2022-07-01 12:08:38 -0500 received badge  Notable Question (source)
2022-07-01 12:08:38 -0500 received badge  Popular Question (source)
2015-10-20 01:38:20 -0500 asked a question how do I implement a proportional drive in stageros?

my omnidirectional robot on stageros can follow a graph.. what's the easiest way to implement a proportional drive in this situation?

 while (ros :: ok())
    {

            geometry_msgs::Twist msg;


        if((grafo[0][1])&&t)
        {
            msg.linear.x = (nodos[v[t-1]].x-nodos[v[t]].x)/(grafo[0][1]);
            msg.linear.y = (nodos[v[t-1]].y-nodos[v[t]].y)/(grafo[0][1]);

            if(fabs(start.y-(nodos[v[t-1]].y))<1&&fabs(start.x-(nodos[v[t-1]].x))<1)
            {
                t--;
            }
        }

            pub.publish(msg);

            ros :: spinOnce();
            rate.sleep();
    }
}
2015-10-20 01:38:19 -0500 asked a question how can I implement a proportional drive?

my omnidirectional robot on stageros can follow a graph.. what's the easiest way to implement a proportional drive in this situation?

while (ros :: ok()) {

        geometry_msgs::Twist msg;


    if((grafo[0][1])&&t)
    {
        msg.linear.x = (nodos[v[t-1]].x-nodos[v[t]].x)/(grafo[0][1]);
        msg.linear.y = (nodos[v[t-1]].y-nodos[v[t]].y)/(grafo[0][1]);

        if(fabs(start.y-(nodos[v[t-1]].y))<1&&fabs(start.x-(nodos[v[t-1]].x))<1)
        {
            t--;
        }
    }

        pub.publish(msg);

        ros :: spinOnce();
        rate.sleep();
}

}