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

MarosROS's profile - activity

2023-11-28 09:25:15 -0500 received badge  Famous Question (source)
2023-11-28 09:25:15 -0500 received badge  Notable Question (source)
2023-11-28 09:25:15 -0500 received badge  Popular Question (source)
2023-04-16 01:40:09 -0500 received badge  Taxonomist
2023-02-16 10:39:00 -0500 received badge  Nice Question (source)
2021-08-05 12:14:56 -0500 received badge  Student (source)
2021-07-07 15:51:39 -0500 received badge  Famous Question (source)
2021-04-06 22:14:47 -0500 received badge  Famous Question (source)
2021-04-06 22:14:47 -0500 received badge  Notable Question (source)
2021-04-06 22:14:47 -0500 received badge  Popular Question (source)
2021-02-17 07:11:53 -0500 received badge  Famous Question (source)
2021-02-16 13:37:11 -0500 received badge  Famous Question (source)
2021-02-16 13:25:49 -0500 received badge  Famous Question (source)
2021-02-16 13:25:49 -0500 received badge  Notable Question (source)
2020-08-05 06:59:44 -0500 received badge  Famous Question (source)
2020-07-28 10:43:23 -0500 received badge  Notable Question (source)
2020-07-28 10:43:23 -0500 received badge  Popular Question (source)
2020-06-10 20:58:12 -0500 received badge  Famous Question (source)
2020-06-04 07:47:56 -0500 received badge  Notable Question (source)
2020-06-04 07:47:56 -0500 received badge  Popular Question (source)
2020-05-06 07:28:03 -0500 received badge  Popular Question (source)
2020-05-04 05:12:31 -0500 received badge  Notable Question (source)
2020-04-30 12:23:19 -0500 asked a question How to find out other robots finished goal?

How to find out other robots finished goal? Hi, my goal is to send a goal on one node and find out the state of the goal

2020-04-04 04:40:12 -0500 asked a question Multirobot_map_merge finish map

Multirobot_map_merge finish map Hi, i am working on the robot application using SLAM and I wonder if it is possible with

2020-04-02 13:41:25 -0500 commented answer Using ROS namespaces programmaticaly

Thanks this was also very helpful.

2020-04-02 13:37:21 -0500 commented answer Multi-robot SLAM collision avoidance

This is great idea, but i suppose i would need to save the last position of the robot somewhere to use it later.

2020-04-01 13:16:01 -0500 asked a question Realsense R200 for gmapping SLAM?

Realsense R200 for gmapping SLAM? Hello, i wonder if it is possible to use turtlebot's 3 Waffle 3D camera Realsense R200

2020-04-01 07:38:10 -0500 received badge  Popular Question (source)
2020-04-01 07:30:28 -0500 marked best answer Using ROS namespaces programmaticaly

It seems like the simple question, but is it possible to control robots with different ROS namespaces in one launch file programmaticaly? For example, i want to move robot1 one meter forward, and robot2 one meter backward programmaticaly in one file. Also i wonder if it is possible for a launch file which is launched for example in ROS_NAMESPACE=robot1, to programmaticaly control nodes of another robot in ROS_NAMESPACE=robot2? Thanks for answers.

Edit:

For example, i use code from this tutorial

What i want to know is, if it is somehow possible to write code like this:

#include <ros/ros.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <actionlib/client/simple_action_client.h>

typedef actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction> MoveBaseClient;

int main(int argc, char** argv){
  ros::init(argc, argv, "simple_navigation_goals");

  //tell the action client that we want to spin a thread by default
  MoveBaseClient ac("tb3_0/move_base", true);

  //wait for the action server to come up 
  while(!ac.waitForServer(ros::Duration(5.0))){
    ROS_INFO("Waiting for the move_base action server to come up");
 }

 move_base_msgs::MoveBaseGoal goal;

 //we'll send a goal to the robot to move 1 meter forward
 goal.target_pose.header.frame_id = "tb3_0/base_link";
 goal.target_pose.header.stamp = ros::Time::now();

 goal.target_pose.pose.position.x = 1.0;
 goal.target_pose.pose.orientation.w = 1.0;

 ROS_INFO("Sending goal");
 ac.sendGoal(goal);

 ac.waitForResult();

 if(ac.getState() == actionlib::SimpleClientGoalState::SUCCEEDED)
    ROS_INFO("Hooray, the base moved 1 meter forward");
 else
    ROS_INFO("The base failed to move forward 1 meter for some reason");

return 0;
}

My goal would be to add two more move_base clients to control more robots from different namespace in this one source file.

---Edit---

I found out, this example is possible.

2020-04-01 07:30:28 -0500 received badge  Scholar (source)
2020-04-01 07:30:19 -0500 edited question Using ROS namespaces programmaticaly

Using ROS namespaces programmaticaly It seems like the simple question, but is it possible to control robots with differ

2020-04-01 07:29:03 -0500 received badge  Notable Question (source)
2020-04-01 07:26:54 -0500 edited question Multi-robot SLAM collision avoidance

Multi-robot SLAM collision avoidance Hi, my question is, Is there a way to make robot avoid collision with another rob

2020-04-01 06:44:56 -0500 asked a question Multi-robot SLAM collision avoidance

Multi-robot SLAM collision avoidance Hi, my question is, what is the best way to make robot avoid collision with another

2020-03-11 15:01:58 -0500 received badge  Popular Question (source)
2020-03-09 12:00:08 -0500 asked a question How to setup a move_base for multiple turtlebots?

How to setup a move_base for multiple turtlebots? Hello, For the past few weeks i am trying to use move_base for turtle

2020-03-07 04:42:19 -0500 asked a question Debug message warning move_base

Debug message warning move_base Hello, my goal is to successfully run my move_base nodes both for tb3_0 and tb3_1 turt

2020-03-05 06:17:52 -0500 received badge  Popular Question (source)
2020-03-04 12:08:59 -0500 commented answer Using ROS namespaces programmaticaly

@Tahir Mehmood I edited the question with the example

2020-03-04 12:07:32 -0500 edited question Using ROS namespaces programmaticaly

Using ROS namespaces programmaticaly It seems like the simple question, but is it possible to control robots with differ

2020-03-04 06:49:15 -0500 received badge  Popular Question (source)
2020-03-03 13:02:21 -0500 asked a question Using ROS namespaces programmaticaly

Using ROS namespaces programmaticaly It seems like the simple question, but is it possible to control robots with differ

2020-02-27 13:26:37 -0500 asked a question Local planner costmap is empty

Local planner costmap is empty Hi, I am trying to configure move_base node so i can use navigation of multiple robots. I

2020-02-26 13:44:20 -0500 edited question Dwa planner bad exploration using namespaces

Dwa planner bad exploration using namespaces Hi, I am using explore_lite package for exploration with multiple turtlebot

2020-02-25 12:48:44 -0500 asked a question Dwa planner bad exploration using namespaces

Dwa planner bad exploration using namespaces Hi, I am using explore_lite package for exploration with multiple turtlebot

2020-02-14 07:09:03 -0500 received badge  Famous Question (source)
2020-01-21 08:44:40 -0500 received badge  Notable Question (source)
2020-01-21 06:27:16 -0500 received badge  Popular Question (source)
2020-01-04 16:10:53 -0500 received badge  Famous Question (source)