Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all 252 articles
Browse latest View live

launch file foreign_relay error

$
0
0
I am trying to run a node for foreign relay to a remote computer turtlebot but it gives me this error. [FATAL] [1486425646.037670123]: Couldn't parse the foreign master URI [http:] into a host:port pair. [generic_msg_foreign_relay-1] process has died [pid 25027, exit code 1, cmd /opt/ros/groovy/stacks/multimaster_experimental/foreign_relay/bin/foreign_relay adv http: //192.168.1.17:11311 /leader/base_link /leader/base_link __name:=generic_msg_foreign_relay __log:=/home/turtlebot/.ros/log/4accea04-ecc0-11e6-856c-48d2246be9cd/generic_msg_foreign_relay-1.log]. log file: /home/turtlebot/.ros/log/4accea04-ecc0-11e6-856c-48d2246be9cd/generic_msg_foreign_relay-1*.log this is my launch file:

Hector Exploration Launch file

$
0
0
Hi, I am trying to launch hector exploration with my turtlebot with just an RPLidar A2 sensor. I am unsure what is required in the launch file to get hector exploration to work and also not sure what I should key in for the hector_exploration_planner node in the launch file (I keep getting this error:- ERROR: cannot launch node of type [hector_exploration_planner/hector_exploration_base_global_planner_plugin ]: can't locate node [hector_exploration_base_global_planner_plugin ] in package [hector_exploration_planner] ). Any idea how to go about doing it? Any sample launch files that are available for viewing? I am using the Hector Navigation stack from this link: https://github.com/tu-darmstadt-ros-pkg/hector_navigation Thanks in advance!

Params in roslaunch

$
0
0
When are the parameters loaded to Rosmaster when these parameters are included in the launch file? It is assured that these parameters are loaded before the start of the nodes presents in the same launch file?

What's the difference between "laser" and "scan" of tf

$
0
0
When I write the above. I'm not clear about the names of tf frames, especially for the "laser". Is this argument always like this even if my sensor topic is "/scan" ? Does it mean the frame name is given by a name space and it has no relation to topic names?

how to use "rosparam load" to set specified namespace parameter?

$
0
0
for example , l creat a node which namespace is robot .Then I try to change some parameters in this node . so l create a xxx.yaml ,and set some parameters' values. And then in the xxx.launch ,I add this line , but the parameter doesn't change. I wonder if there someting should be added in the yaml (ps: I just set values in the yaml ,like "wheel_radius : 0.2" ,and write "using namespace robot " ) ? Or the namespace should be set in some rules ? please help

Use param for remapping in launch file

$
0
0
Hello, I have several nodes with common parameters so I tought it would be nice for debugging to have all of them just in one file and not in all of them. This is working fine but the problem is that remapping it is not able to retrieve this parameters. Is there any way for doing this? Either using the ROS API either scripting? This is an example of what I am trying to do:

Best tutorial on Hector Slam implementation, trying to resolve TF issues

$
0
0
I have been working on this for about a week, I have run up against the normal issues and I am looking for a tutorial to help me through the next phase. Here is what I have done thus far: I have ros(kinetic) master installed communicating with a remote ros(indigo) machine that publishes data via rosserial from an rplidarA2 mounted on a differential drive mobile arduino controlled bot( no wheel encoders). Hector slam package is installed and functions when playing back the tutorials bagfile. If I attempt to switch to live data I can see the data, so I know it is present,but, I cant seem to get the live data and hector slam to play well together and publish the odom data. Current list of ongoing TASKS: **Implement Hector Slam with live data from RPLidar A2 Unit.** 1. **Implement Hector Slam with live data from RPLidar A2 Unit.** 2. Finish Differential Drive arduino code. 3. Install ros navigation stack, and tie the differential drive, lidar, and odom data together. 4. Begin working with MoveIt for Trajectory planning. I need the Hector-Slam to work before, I can progress much further, I have attempted to work through all the tutorials I have found and have scoured this forum for applicable suggestions, specifically the correct way to launch RViz with live data from lidar. I am not asking for a handout, just a hand up, if you respond with--- go read the ros hector slam wiki, it is not helpful been there done that have like 15 t-shirts..... I do thank you for reading this far and all who have helped me make it thus far. This forum is full of experience, knowledge and great people. Looking forward to your suggestions, Best regards, W

When launching node on remote machine, is the local or remote version of the package used?

$
0
0
If PC 1 runs Node A on PC 2, does PC 2 use the code from PC 1 or PC2?

Using prebuilt Map with AMCL launch file- how to execute with RVIZ

$
0
0
I currently have made my map using Hector Slam and saved the map as .yaml file and .pgm . I have downloaded the Navigation stack as well using git source: https://github.com/ros-planning/navigation.git . Also ran catkin_make afterwards. Now, I am trying to implement AMCL by placing my robot( irobot create 2) onto the map and do autonomous mapping. After researching online, I have come to know about creating my own launch file. However, the github website came with a amcl_diff launch file and I am not sure how to properly execute it with my robot and LIDAR instrument. Please find below code for amcl_diff.

Ros nodes not starting from a launch file

$
0
0
'm trying to create a launch file for starting all the nodes. But for some reason, running the launch file doesn't run the node. The topic in which the node publishes is listed when I run rostopic list, but when I try to echo, nothing is displayed. On the other hand if I just do a rosrun, it all works perfectly fine. This is my launch file: I'm using Indigo. I'm trying to launch a python node in a folder called scripts within the IMU_filter ROS package.

how to create a the launch file xml

$
0
0
i follow the tutorials to 2.3 The launch file .the tutorials just tell us to :"Now let's create a launch file called turtlemimic.launch and paste the following: "but it doesn't tell us how to create a launch file .so ,i really don't know where to past the scripts it provides : so ,could any can tell me how to create a launch file and where to paste the scripts .

Assign value of a rosparam to a node param in a launch file

$
0
0
I would like to configure the "mongodb_store" as it uses for database_path a directory path that it is stored in a parameter of the ROS server. The path is stored as "/rosplan/database_path", see below. To achieve this I am calling "rosparama get /rosplan/data_path" in the "command" keyword of "database_path" param" required by "mongodb_store". It does not work, and output of the console is: SUMMARY ======== PARAMETERS * /rosdistro: indigo * /rosplan/data_path: /home/dieesrod/Wo... * /rosplan/database_path: /home/dieesrod/Wo... * /rosplan/domain_path: /home/dieesrod/Wo... * /rosplan/planner_path: /home/dieesrod/Wo... * /rosplan/problem_path: /home/dieesrod/Wo... * /rosplan/strl_file_path: /home/dieesrod/Wo... * /rosplan_scene_database/database_path: /home/dieesrod/Wo... * /rosversion: 1.11.20 process[rosplan_knowledge_base-1]: started with pid [6332] process[rosplan_scene_database-2]: started with pid [6333] process[rosplan_scene_message_store-3]: started with pid [6341] [INFO] [WallTime: 1491130707.159727] Mongo server address: localhost:27017 [INFO] [WallTime: 1491130707.171976] Found MongoDB version 2.4.9 [ERROR] [WallTime: 1491130707.172236] Can't find database at supplied path /home/dieesrod/Workspaces/ROS/indigo/anchoring/src/anchoring_system/experiments/pepito_organize_boxes/common/mongoDB . If this is a new DB, create it as an empty directory. [rosplan_scene_database-2] process has died [pid 6333, exit code 1, cmd /opt/ros/indigo/lib/mongodb_store/mongodb_server.py __name:=rosplan_scene_database __log:=/home/dieesrod/.ros/log/17adeaa4-1765-11e7-b57a-a4c49440ffa1/rosplan_scene_database-2.log]. log file: /home/dieesrod/.ros/log/17adeaa4-1765-11e7-b57a-a4c49440ffa1/rosplan_scene_database-2*.log [ERROR] [WallTime: 1491130717.404485] Can't connect to MongoDB server. Make sure mongodb_store/mongodb_server.py node is started. In fact, when I get the information of "/rosplan/database_path" and "/rosplan_scene_database/database_path" there are some extra spaces in the second one. $ rosparam get /rosplan/database_path /home/dieesrod/Workspaces/ROS/indigo/anchoring/src/anchoring_system/experiments/pepito_organize_boxes/common/mongoDB $ rosparam get /rosplan_scene_database/database_path '/home/dieesrod/Workspaces/ROS/indigo/anchoring/src/anchoring_system/experiments/pepito_organize_boxes/common/mongoDB ' Do you know why this is happening? And how I could solve this situation? I am using ROS Indigo running on Ubuntu 14.04 LTS. Thanks in advance.

Issues launching ROS on startup

$
0
0
ROS: groovy OS: ubuntu 12.04 What we are trying to do is have roscore start upon boot (have this working now) and then execute a launch file. I am not a linux person, so I feel I am really not approaching this the right way. Currently, this is what I have attempted: 1) roscore is launched via a script in /etc/init.d. This is fine. 2) I want to launch my launch file on boot. Manually, I do it like this: roslaunch rover.launch. It works great. 3) I would like this to start on boot, so I tried the following: inside new script (boot.sh) - note i disabled password prompt for sudo: sudo su - roboops /home/roboops/groovycat/scripts/bootRoverLaunch.sh bootRoverLaunch.sh: cd /home/roboops/groovycat/ source devel/setup.sh sleep 5 roslaunch rover.launch > /home/roboops/groovycat/scripts/startup.log 4) I went to "startup applications" and added "bash /home/roboops/groovycat/scripts/boot.sh" 5) Tried rebooting. Roscore starts, and the launch files executes. However, the nodes malfunction and don't work correctly (They work fine when started using the launch file directly in a terminal window. Oddly, it also works fine if I log out and back in once) More specifically, here is the problem when using the above script to launch: I am trying to run two nodes: -joystick node (publishes joy topic) -motor control node (listens to joy topic and outputs commands to motor controllers via serial) Joystick node starts successfully and If I do rostopic echo joy, I can see the values. Motor control node is listed as running but if I run roswtf it says: Found 3 error(s). ERROR Could not contact the following nodes: * /Drivetrain ERROR The following nodes should be connected but aren't: * /Drivetrain->/rosout (/rosout) ERROR Errors connecting to the following services: * service [/Drivetrain/get_loggers] appears to be malfunctioning: Unable to communicate with service [/Drivetrain/get_loggers], address [rosrpc://Rover:58631] * service [/Drivetrain/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/Drivetrain/set_logger_level], address [rosrpc://Rover:58631] The idea is, I need everything to automatically start on power-up. There will be no input devices/monitor connected to it when it is in use.

The fails to call the file

$
0
0
I have a urdf set up and I am trying to call an external .gazebo file using `` but it can't find the file. What am I doing wrong? Thanks

Invalid tag

$
0
0
I am trying to modify hector_quadrotor in gazebo. because I am quite new to ROS and Gazebo while processing `roslaunch hector_quadrotor_gazebo spawn_quadrotor_with_kinect.launch` which exists in the original packages i failed.it shows following error: in file: /home/ayatoshi/hector_quadrotor_tutorial/src/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor_with_kinect.gazebo.xacro while processing /home/ayatoshi/hector_quadrotor_tutorial/src/hector_quadrotor/hector_quadrotor_gazebo/launch/spawn_quadrotor.launch: Invalid tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro '/home/ayatoshi/hector_quadrotor_tutorial/src/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor_with_kinect.gazebo.xacro' base_link_frame:=/base_link world_frame:=world] returned with code [2]. Param xml is The traceback for the exception was written to the log file i dont know how to solve the problem Can you give me some information about how to solve the problem? thanks a lot. here is the spawn_quadrotor_with_kinect.launch: `

RVIZ, multiple cameras (kinects), same global frame

$
0
0
I have 2 kinects (v1 1414) running from the same launch file. I can access both in rviz but I have to switch **Global Options** > **Fixed Frame** from `kinect1_link` to `kinect2_link`. #Question How can I make both cameras be viewed in the same Fixed Frame ? *Launch file:*

Does anyone have this map file and launch file for turtlebot?

$
0
0
![image description](/upfiles/14942718306954884.png)

Launching hector_pose_estimation error

$
0
0
Hello ROS peeps, I am a newbie to ROS, I am trying to run hector_localization package i followed the hector tutorial from [here](https://github.com/tu-darmstadt-ros-pkg/hector_localization) **How to run the code** > $ cd catkin_ws git clone>$ git@github.com:tu-darmstadt-ros-pkg/hector_localization.git>$ catkin_make --source hector_localization roslaunch>$ hector_pose_estimation hector_pose_estimation.launch after I launch the hector_pose_estimation.launch i got the following error. From the previous question, I just clone the geographic_info in my catkin_ws so i can build/make the hector_localization successfully. I am not sure why I got the error like this Any configuration I need to set up? Thanks in advance! sensor@Sensor:~/catkin_ws$ roslaunch hector_localization/hector_pose_estimation/launch/hector_pose_estimation.launch ... logging to /home/sensor/.ros/log/a1dbdde8-36fb-11e7-ab45-3c18a0b007a4/roslaunch-Sensor-3319.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. Traceback (most recent call last): File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 307, in main p.start() File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start self._start_infrastructure() File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure self._load_config() File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config roslaunch_strs=self.roslaunch_strs, verbose=self.verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/config.py", line 451, in load_config_default loader.load(f, config, verbose=verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 746, in load self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 718, in _load_launch self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 654, in _recurse_load n = self._node_tag(tag, context, ros_config, default_machine, verbose=verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call return f(*args, **kwds) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 379, in _node_tag 'launch-prefix', 'required')) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 202, in opt_attrs return [self.resolve_args(tag_value(tag,a), context) for a in attrs] File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 183, in resolve_args return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 316, in resolve_args resolved = _resolve_args(resolved, context, resolve_anon, commands) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 329, in _resolve_args resolved = commands[command](resolved, a, args, context) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 142, in _find source_path_to_packages=source_path_to_packages) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 188, in _find_executable full_path = _get_executable_path(rp.get_path(args[0]), path) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 203, in get_path raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: hector_pose_estimation ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/home/sensor/catkin_ws/src ROS path [2]=/opt/ros/indigo/share ROS path [3]=/opt/ros/indigo/stacks sensor@Sensor:~/catkin_ws$ roslaunch hector_localization/hector_pose_estimation/launch/hector_pose_estimation.launch ... logging to /home/sensor/.ros/log/a1dbdde8-36fb-11e7-ab45-3c18a0b007a4/roslaunch-Sensor-3464.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. Traceback (most recent call last): File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 307, in main p.start() File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start self._start_infrastructure() File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure self._load_config() File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config roslaunch_strs=self.roslaunch_strs, verbose=self.verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/config.py", line 451, in load_config_default loader.load(f, config, verbose=verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 746, in load self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 718, in _load_launch self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 654, in _recurse_load n = self._node_tag(tag, context, ros_config, default_machine, verbose=verbose) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call return f(*args, **kwds) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 379, in _node_tag 'launch-prefix', 'required')) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 202, in opt_attrs return [self.resolve_args(tag_value(tag,a), context) for a in attrs] File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 183, in resolve_args return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 316, in resolve_args resolved = _resolve_args(resolved, context, resolve_anon, commands) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 329, in _resolve_args resolved = commands[command](resolved, a, args, context) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 142, in _find source_path_to_packages=source_path_to_packages) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 188, in _find_executable full_path = _get_executable_path(rp.get_path(args[0]), path) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 203, in get_path raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: hector_pose_estimation ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/home/sensor/catkin_ws/src ROS path [2]=/opt/ros/indigo/share ROS path [3]=/opt/ros/indigo/stacks

Not find launch file in package [kinect2_bridge]

$
0
0
Hi. I'm using ROS Indigo and Ubuntu 14.04. I installed libfreenect2 and I checked that Protonect moved. I installed iai_kinect2 and did $: roslaunch kinect2_bridge kinect2_bridge.launch I had error message following, [kinect2_bridge.launch] is neither a launch file in package [kinect2_bridge] nor is [kinect2_bridge] a launch file name The traceback for the exception was written to the log file How can I solve this error?? I write my PATH and please tell me what I should show you if it is not enough. ・Path $: export | grep ROS declare -x ROSLISP_PACKAGE_DIRECTORIES="" declare -x ROS_DISTRO="indigo" declare -x ROS_ETC_DIR="/opt/ros/indigo/etc/ros" declare -x ROS_MASTER_URI="http://localhost:11311" declare -x ROS_PACKAGE_PATH="/opt/ros/indigo/share:/opt/ros/indigo/stacks" declare -x ROS_ROOT="/opt/ros/indigo/share/ros"

How can I run .launch files from launch file ?

$
0
0
hi ! i have to run two launch file before run rviz in launch code. i wrote this code : please edit code for me and write correct code. thank you !
Viewing all 252 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>