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

forsand's profile - activity

2012-11-29 04:10:26 -0500 received badge  Famous Question (source)
2012-11-29 04:10:26 -0500 received badge  Popular Question (source)
2012-11-29 04:10:26 -0500 received badge  Notable Question (source)
2012-10-21 13:04:30 -0500 received badge  Notable Question (source)
2012-10-21 13:04:30 -0500 received badge  Popular Question (source)
2012-10-21 13:04:30 -0500 received badge  Famous Question (source)
2012-05-11 02:23:25 -0500 received badge  Student (source)
2012-05-09 21:43:38 -0500 answered a question run gazebo simulation without graphics output

ok, thank you!

2012-05-09 03:54:30 -0500 asked a question run gazebo simulation without graphics output

Hello, I'm not interested in graphics output so I would know if it is possible to run a simulation without displaying the output in order to speed up simulation.

Thank you!

2012-04-05 01:27:45 -0500 asked a question problem moving robot setting /gazebo/set_link_state

Hi, I am building a simple wheeled robot simulator. I build up a node that @10Hz set wheels speeds using the /gazebo/set_link_state service. The cpp code is the following:

int main(int argc, char** argv){
    ros::init(argc, argv, "my_node");
    ros::NodeHandle n;
    ros::Rate loop_rate(10);
    ros::ServiceClient client;

    std::string leftWheelName   = (std::string)"robot::left_middle_wheel";

    geometry_msgs::Twist twist;
    twist.linear.x  = 0.0;
    twist.linear.y  = 0.0;
    twist.linear.z  = 0.0;
    twist.angular.x = 0.0;
    twist.angular.y = 6.28/10;
    twist.angular.z = 0.0;

    gazebo::LinkState localLinkState;
    gazebo::GetLinkState getLinkState;
    gazebo::SetLinkState setLinkState;

    while (ros::ok()) {

        client = n.serviceClient<gazebo::GetLinkState>("/gazebo/get_link_state");
        getLinkState.request.link_name = leftWheelName;
        getLinkState.request.reference_frame = leftWheelName.c_str();
        client.call(getLinkState);

        localLinkState = getLinkState.response.link_state;
        localLinkState.twist = twist;
        localLinkState.reference_frame = leftWheelName.c_str();

        client = n.serviceClient<gazebo::SetLinkState>("/gazebo/set_link_state");
        setLinkState.request.link_state = localLinkState;
        client.call(setLinkState);

        ros::spinOnce();
        loop_rate.sleep();
   }
    return 0;
}

This seems to work but the real speed of the wheel is halved. I saw that only during half of the steps the wheel spins, during the other steps is stopped. Can someone help me?

Thank you!

2012-04-05 00:52:32 -0500 commented answer Are there any books on ROS?

ok, thank you!

2012-04-04 00:25:19 -0500 answered a question Are there any books on ROS?

Hello everybody! I am a new ROS user and I'm looking for a book too. Could you suggest me something to read over the wiki?

Thank you!