Questions tagged [namespace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Is it possible to use expression evalutions ${} to call Xacro namespace macros to create lots of robots efficiently? Want to avoid hard-coding

The below code is incorrect. Is there a way to do this properly to potentially make a macro that creates lots of robots. ...
Yato's user avatar
  • 11
0 votes
1 answer
86 views

How do you pass params into another Xacro file via xacro:include? How does the other Xacro file receive that input?

How do you use xacro:macro and arg to include 2 of the same robot in your URDF? I'm using args for each Xacro file to read the ...
Yato's user avatar
  • 11
0 votes
1 answer
121 views

Is it possible to change the rviz2 window title or to show the namespace used?

I am using multiple RViz2 instances simultaneously with the same configuration file but in different namespaces. The instances are started with ...
Max's user avatar
  • 111
0 votes
1 answer
2 views

Variable namespaces in classes (Python3)

I am having difficulties using variable namespaces with python3 classes Here's a snippet of code that I would think would work, but doesn't. In the BasicNavigator class: ...
user avatar
0 votes
1 answer
34 views

Connect to multiple namespaced movegroups from single C++ node

I am working on a two robot set up that uses SMACC state machines in C++, with MoveIt!. In order to control multiple robots from a state machine, I need to run the state machine in a node that is ...
sniegs's user avatar
  • 35
0 votes
1 answer
277 views

A definitive guide to launching multi-robot operations in ROS2

Disclaimer that I know this question strays from the typical ROS Answers format a fair bit. But I still think this is a better medium to have this discussion than, say, ROS Discourse. I've looked ...
shonigmann's user avatar
0 votes
1 answer
13 views

Unable to transform object from namespaced frame 'ns/base_link' to planning frame 'base_link'

I have a two robot system that is prefixed in separated namespaces so each robot can work independently, but they exist in a single workspace in a connected tf_tree....
sniegs's user avatar
  • 35
0 votes
1 answer
67 views

Spawning multiple robots in Gazebo and assinging namespaces

In my application I want to spawn multiple robots in the Gazebo world and also keep namespaces for each robot in order to use tools as SLAM, navigation or exploration for each robot individually. ...
user avatar
0 votes
1 answer
29 views

Getting node name namespace from rclcpp

Hi is there a way to get to a node namespace in some clean way before that node is constructed using make shared? Processing argv doesn't seem like a good idea :/ Let's say ...
Serafadam's user avatar
0 votes
1 answer
16 views

How to prevent ROS namespace from overwriting topic names?

I am now working on the simulation with multiple robots and I want to use namespaces to organize the nodes better. However, I am also trying some information exchange among robots so they are also ...
user avatar
0 votes
1 answer
7 views

service on different namespace

Hey guys Quick question: I was wondering if it's possible to call services that are created on nodes with different namespaces? For instance, if I have node_1 on namespace node_1, can I call service_2 ...
user avatar
0 votes
1 answer
129 views

ROS2 parameter in launch file with node namespace

From the following answer by @dhood it says that since Crystal modifications for the nodes name/namespace in launch files will also be taken into account for the parameter YAML file: https://answers....
befaro's user avatar
  • 32
0 votes
1 answer
7 views

How do I modify the name of topic in launch file?

Hello, I'm using ROS melodic on Ubuntu 18.04. I'd like to spawn 4 mobile robots and make them move randomly on gazebo simulation. I practiced with one robot and also set a node just publishing the ...
user avatar
0 votes
1 answer
18 views

Loading controllers from yaml in namespace

Hi, (*Using ROS Melodic in Ubuntu) I am loading a yaml with 4 controllers + joint_state_controller in a namespace. Yaml aspect: ...
user avatar
0 votes
2 answers
3 views

How to pass private parameters to multiple instances of node?

I have created a package containing a rospy node that I wish to be able to launch from arbitrary other packages with custom arguments with each launch eg. myex.py ...
user avatar
0 votes
1 answer
5 views

How to remap topic's name?

Hi! I'm using ROS kinetic on Ubuntu 16.04. My 2D Lidar sensor Hokuyo requires urg_node to publish laser-scanned topic (its name is "/scan") And I want to remap the name of this topic from &...
user avatar
0 votes
1 answer
41 views

Ros 2 remap services

Hello, Is there (already) a way in Ros 2 to remap services in a launch file? For example: If my service is on '/service' and my client-node is in a namespace called 'a' and therefore tries to connect ...
user avatar
0 votes
1 answer
5 views

Adding a namespace to robot frames

I am running multiple qbots in a multi-master network, and I have been able to successfully run individual robot topics under a given namespace. (eg: qbot1/mobile_base/commands/ .... , qbot2/...
user avatar
0 votes
1 answer
5 views

freenect /camera/depth/points topic not published under a group namespace tag

Hi! I am currently running Octomap on my Qbot using ROS kinetic and Ubuntu 16.04. (My plan is to run ROS navigation stack using the built octomap and create a multi-robot system) Because of the multi-...
user avatar
0 votes
1 answer
3 views

Unique namespace for a robot using the launch file

Hi! I am trying to develop a multi-robot system using Qbots. For that I need to assign different namespaces to each robot in the network. (As Qbot1, Qbot2 etc.) As my previous question, and the ...
user avatar
0 votes
1 answer
5 views

ROS3D.js how to setup the namespace

Hi, I am running my node with a launch file, in a namespace. Lets call it: my_namespace. I am getting the following error when I am trying to use the example urdf.html in ros3djs package: ...
user avatar
0 votes
1 answer
5 views

Namespaces of Nodes

At first I executed the command roscore to activate name service and XMLRPC mechanism for node communation. Then, I launched two turtlesim nodes for turtle ...
user avatar
0 votes
1 answer
9 views

Confused about loading ros_control and MoveIt! controllers

It seems that MoveIt! expects the controllers.yaml to have controller_list: at the top, like this: ...
AndyZe's user avatar
  • 853
0 votes
1 answer
7 views

roswtf service malfunctioning error

Hello! I have been experimenting with namespaces for my two turtlebot3s. Everything seemed to be fine when I launched and sshed, but when I went to run some gmapping code, I noticed I was missing some ...
user avatar
0 votes
1 answer
5 views

rospy: node namespace is empty

I got the impression that a node per default has a namespace matching the node name. Mini example, I run this node: ...
user avatar
0 votes
1 answer
13 views

rospy equivalent to ros::NodeHandle nh("namespace")

I'm very new to ROS and am [slightly] more versed in python than C++, so that's the route I'm currently pursuing in my learning. ...
user avatar
0 votes
1 answer
1 view

How to prefix remote topics in a multimaster setup with rocon?

Hi, I am experimenting with a multimaster setup. A central server S and two robots A and B. Currently I am using rocon. When I flip a connection from A to S eg. /talker this will appear on S as /...
user avatar
0 votes
1 answer
6 views

How to fix ros::NodeHandle error?

This is my code snippet of curser.h ...
user avatar
0 votes
1 answer
19 views

Error: 'std_srvs::Empty' is not a namespace

Hey everyone, I'm currently working through "A Gentle Introduction to ROS" and in the chapter about services the following example is shown: ...
user avatar
0 votes
1 answer
4 views

What is difference between a node with ns and node inside group with same namespace?

A node in ROS can have ns as an attribute that starts node in given namespace. A node also be grouped inside a namespace by nesting it under group tag. But is different in both scenario. For me both ...
user avatar
0 votes
1 answer
99 views

Launching multiple instances of same ROS node (with different names)

The problem is in simulating two independent different robots in Gazebo: Copter and Rover with same mavros functionality. (Two independent instances of mavros would do great) Can two instances of ...
user avatar
0 votes
1 answer
13 views

How can I spawn multiple of the same robot, and control them individually?

Hey, I'm using Indigo for a project involving swarms of robots. I want to be able to spawn and control multiple of the same URDF into Gazebo. I've been attempting to use the RRBot (from this tutorial: ...
user avatar
0 votes
1 answer
4 views

Get (remote) node name(-space) when receiving a message

Hi all, when I subscribe to a topic, is there a way to get the name / namespace of the publishing node on reception of a message? I know about ...
user avatar
0 votes
1 answer
2 views

Multiple Robot Navigation

I know that similar question were already asked here but there is no solution to my problem. I run navigation on several turtlebots using one shareable map. However, I have encountered a problem ...
user avatar
0 votes
2 answers
9 views

Changing tf_prefix for turtlebot

I know that similar questions were already asked here but I still haven't found an answer to my question. I would like to create a system of several turtlebots with different names (e.g. "pinky&...
user avatar
0 votes
1 answer
7 views

What is the proper approach to create a dynamic *number* of subscribers/services?

I have n number of robots, and I want to gather each of their positions. Each robot is under a different namespace so I have the topics: ...
user avatar
0 votes
1 answer
4 views

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 ...
user avatar
0 votes
1 answer
6 views

The move_base isn't subscribing to /robot1/map

Hello everyone, I'm trying to add a namespace to my robot. Firstly, I added _${arg robot_name} after all frames. I can control my different robots with ...
user avatar
0 votes
1 answer
9 views

Controller Manager Problem for Multiple Robots in Simulation

Hi, I edited my question. I want to simulate multiple robots in gazebo and started with namespace settings. I'm following this tutorial with separated launch files for each robot. but Controller ...
user avatar
0 votes
2 answers
4 views

subscribe one variable from big topic msg

Hi, I am using PID pkg that requires a std_msgs float type from topic but I am publishing this variable from a big topic that is the state of the plant (has several floats, integers and booleans) When ...
user avatar
0 votes
1 answer
7 views

remapping whole namespace in launchfile

Let's say I have a node with several topics like this: /group/node/topic1 /group/node/topic2 /group/node/topic3 ... Now I want to remap all topics to a different ...
user avatar
0 votes
1 answer
7 views

roslaunch - namespace substitution within group tags

I'm working on a multiple robot application and am trying to develop a clean launch file. I have multiple blocks of XML in my launch file that look like... ...
user avatar
0 votes
1 answer
17 views

Simulation of multiple Husky robots

Hello all, I'm relatively new to ROS and I'm working on simulation of multiple Clearpath Huskies running some simple obstacle avoidance code that I've written. I've installed and used the husky_gazebo ...
user avatar
0 votes
1 answer
3 views

Private Parameters in a sub namespace

Hello, I have a ROS node that essentially does this: ...
user avatar
0 votes
1 answer
10 views

Do marker namespaces and ids actually do anything?

I am having trouble understanding the purpose of namespaces and ids as applied to markers. I am specifically referring to some of the info provided on this wiki page. It says that if a marker has the ...
user avatar
0 votes
1 answer
6 views

Is there a environmental variable for current namespace in launchfiles?

Hi, I have created an multirobot launch for Gazebo. Now I found out that there is a solvable problem with the namespace in the robot state publisher. I solved it with adding a tf_prefix. But now here ...
user avatar
0 votes
1 answer
5 views

leading slash in namespace

Hello. I'm studying hard about ROS and gazebo. Now I'm very confused about namespace. Is there any difference in between /p3dx/base_link and ...
user avatar
0 votes
1 answer
2 views

getNamespace returns double slash

Hello everybody, I am experiencing a weird error. Considering a launch file where I launch a node in either of the two following ways ...
user avatar
0 votes
1 answer
3 views

Exclude topic from namespace

Hello, I have a Turtlebot running the navigation stack and a workstation that runs the corresponding map-server. The amcl node is launched in a namespace so that all published and subscribed topics ...
user avatar
0 votes
1 answer
2 views

How to deal with a large number of (possibly variable) topic names

Our system has many sensors, and in the future the number of a particular type of sensor may vary. Currently our scheme is something like: ...
user avatar