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

Pikachu's profile - activity

2021-08-16 07:27:29 -0500 received badge  Famous Question (source)
2020-07-20 11:26:47 -0500 received badge  Famous Question (source)
2020-05-27 02:03:31 -0500 received badge  Notable Question (source)
2020-05-27 02:03:31 -0500 received badge  Popular Question (source)
2018-09-19 14:30:04 -0500 marked best answer How do I communicate between 2 robots ?

As I am new to ROS, I don't know how to establish communication between 2 robots. I have launched 2 Husky robots in gazebo using namespace. The 2 robots must communicate with each other for data sharing, how do I do that? If data communication is not possible with Husky robots, then which robots should be used? My main aim is to implement Fog Computing algorithms here and check how the robots respond to it. Here I am simulating in Gazebo but if I have actual robots, then they must also communicate with each other. Through communication, I mean they can send their data to one another, process it and return back. I am using ROS-Indigo with Gazebo-2.2.2 on Ubuntu-14.04.

2018-03-20 00:56:05 -0500 received badge  Famous Question (source)
2018-03-20 00:56:05 -0500 received badge  Notable Question (source)
2018-03-20 00:56:05 -0500 received badge  Popular Question (source)
2017-11-04 04:58:00 -0500 received badge  Famous Question (source)
2017-09-22 02:23:05 -0500 received badge  Famous Question (source)
2017-08-11 03:12:47 -0500 received badge  Famous Question (source)
2017-06-15 09:06:15 -0500 received badge  Notable Question (source)
2017-06-15 09:06:15 -0500 received badge  Famous Question (source)
2017-03-26 00:30:31 -0500 received badge  Notable Question (source)
2017-01-20 17:17:49 -0500 received badge  Famous Question (source)
2016-12-06 05:48:19 -0500 received badge  Popular Question (source)
2016-12-06 05:48:19 -0500 received badge  Notable Question (source)
2016-12-01 23:14:23 -0500 received badge  Famous Question (source)
2016-11-20 11:20:55 -0500 received badge  Famous Question (source)
2016-11-20 00:33:16 -0500 received badge  Famous Question (source)
2016-11-18 15:40:33 -0500 received badge  Popular Question (source)
2016-09-29 13:38:09 -0500 received badge  Notable Question (source)
2016-08-31 14:52:08 -0500 received badge  Notable Question (source)
2016-07-04 05:04:39 -0500 received badge  Notable Question (source)
2016-07-04 00:02:50 -0500 commented answer How do I know if service is completed?

Yes, all clients are separate nodes. I have edited the question for better understanding.

2016-07-03 03:21:10 -0500 received badge  Popular Question (source)
2016-07-01 01:07:42 -0500 asked a question How do I know if service is completed?

I am running service client method with 1 server and 4 clients. I am running 5 different programs for them. I need to first send data from client1 to server and call for service. After this service is completed, I need to initialise other service with client3 and client4. How do I achieve this? How do I make client3 and client4 call a service after the client2 has finished the service? What I am trying to do is:

  1. Client2 sends data to Server.
  2. Server distributes that data among Client2, Client3 and Client4.
  3. Client2, Client3, Client4 returns back their data to server after processing.
  4. Server then reorganizes all data and returns final result to Client2.

The main problem now is the data which server gets from Client2 in the starting is not transferred to Client3 by service because server keeps separate threads for clients, I guess.

2016-06-29 12:48:58 -0500 received badge  Popular Question (source)
2016-06-29 04:16:43 -0500 asked a question Can multiple clients communicate with the server at the same time?

I have already established a client and a server connection. Now I need to have multiple clients all calling for the same service. How can I achieve this?

2016-06-29 01:16:21 -0500 received badge  Notable Question (source)
2016-06-28 00:03:17 -0500 asked a question How to establish communication between multiple robots?

I am using service-client method here. I have 4 robots running in gazebo simulator. One of them is server while the other three are clients. I need to achieve the following:

  1. Client1 will send the data to server.
  2. Server will distribute the data equally among client1, client2 and client3.
  3. All 3 clients will then operate on the data and send it back to server.
  4. Server will organise the received data from all clients and send it back to client1.

How do I go about implementing this situation? I am using Gazebo-2.2.2 in ROS-Indigo.

2016-06-22 06:49:20 -0500 asked a question How to send rosbag file to server?

I am working on Gazebo 2.2.2 with two robots in an Gazebo environment. One of them is server while another is client. I need to send the rosbag file recorded by client to server so that server can do computations based on the data of the file. How do I send .bag file to the server? If not .bag file, then can I send .txt file from client to server? I am using ROS Indigo on Ubunut 14.04.

2016-06-21 06:49:16 -0500 commented question How do I write a C++ code to record variable location of robot in rosbag file?

Can you explain me on how to use a service? I am unaware of that. Are you talking about something of service-client kind?

2016-06-21 06:48:05 -0500 received badge  Popular Question (source)
2016-06-21 03:21:55 -0500 commented question How do I write a C++ code to record variable location of robot in rosbag file?

I already checked it. It only provides the way to start rosbag file in a code, which I did. I need to simultaneously move the robot and later close the file through code.

2016-06-21 02:10:48 -0500 received badge  Editor (source)
2016-06-21 02:04:26 -0500 asked a question How do I write a C++ code to record variable location of robot in rosbag file?

I have written a code to record in rosbag file. But if the rosbag file starts, then the robot does not move because of sequential way of code. Here is that part of code :

i=system("rosbag record -a");
while(ros::ok())
{   
    //Declares the message to be sent
    geometry_msgs::Twist msg;
    msg.linear.x=3;
    msg.angular.z=-0.3;
    //Publish the message
    pub.publish(msg);
    //Delays until it is time to send another message   
    rate.sleep();   
}

I need to record in rosbag file while simultaneously moving the robot, then after sometime close the file. How to do that?

2016-06-17 11:48:40 -0500 received badge  Student (source)
2016-06-17 06:25:26 -0500 marked best answer How do I control 2 PR2 robots in gazebo at the same time ?

I can teleoperate on pr2 robot through roslaunch pr2_teleop_general pr2_teleop_general_keyboard.launch. I am also able to move pr2 robot by writing a C++ script. But I want to have 2 pr2 robots in my customised world and control move both of them. I am using ROS-Indigo with gazebo version 2.2.2 on Ubuntu 14.04.

2016-06-17 06:15:09 -0500 marked best answer How to move any 2 robots simultaneously in gazebo?

I need to put any 2 robots in gazebo and keep them moving simultaneously in a fixed square path. I wanted to know which robot should I use and how should I command them to move? I am using ROS-Indigo with Gazebo-2.2.2 on Ubuntu 14.04.

2016-06-17 06:15:09 -0500 received badge  Scholar (source)
2016-06-17 05:05:40 -0500 received badge  Notable Question (source)
2016-06-17 01:11:37 -0500 commented answer How to move any 2 robots simultaneously in gazebo?

Thanks ! It really helped. :)