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

source won't change the package path

$
0
0
Hi, I'm trying to run the pcl tutorial, since i need it for an university project. Unfortunately when I try to run the exaple arnold@arnold-UX31E:~/catkin_ws$ rosrun my_pcl_tutorial example input:=/camera/depth/points I get the error back: > [rosrun] Couldn't find executable named example below /home/arnold/catkin_ws/src/my_pcl_tutorial The executable crated with `catkin_make` is in the build folder, not in src (this seams to be correct). But `rosrun` trys to run it from the src folder. A little research came to the conclusion that it isn't sourced right. When I run `arnold@arnold-UX31E:~/catkin_ws$ source devel/setup.sh` I get no response (no error or approval) and nothing changes. I already deleted the workspace 3 times and just followed the instructions from this Tutorials. http://wiki.ros.org/catkin/Tutorials/create_a_workspace and http://wiki.ros.org/pcl/Tutorials Running Ros Indigo under Ubuntu 14.04 LTS

File output With roslaunch

$
0
0
Hello everyone, I just have a simple question on which i'm stuck for a few days : I have a node in which I output a hand written log file using the c++ functions from fstream. When i'm starting it using rosrun, my file are correctly generated. However, using a rosrun is not practical when you want to use topics rename and I wanted to make it generic and to launch it with a roslaunch. However, it appears that, when I start it with the roslaunch, I don't suceed anymore to write my output files. I looked into the output option from the roslaunch, "screen" or "log" ( default) are available but in the doc it's written that they should redirect stdout/stderr (http://wiki.ros.org/roslaunch/XML/node) and not other custom outputs. If you have any solution or any idee to fix it, I will welcome them with pleasure =D

Running SROS

$
0
0
I have installed **SROS** in a fresh Ubuntu 16.04 machine, following the instructions at http://wiki.ros.org/SROS/Installation/Ubuntu ..and I've added the following line to my .bashrc file: > source ~/sros/**install**/setup.bash I was able to successfully run the key server from SROS by issuing a "sroskeyserver" command. However, when running "sroscore" in a separate terminal I get the following error: initializing node's keystore: /home/david/.ros/sros/keystore/nodes/roslaunch all startup certificates are present ... logging to /home/david/.ros/log/3ccb8758-6ba5-11e7-97cb-080027727615/roslaunch-david-VirtualBox-8839.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. started roslaunch server http://david-VirtualBox:35274/ ros_comm version 1.12.0 SUMMARY ======== PARAMETERS * /rosdistro: kinetic * /rosversion: 1.12.0 NODES auto-starting new master process[master]: started with pid [8851] initializing node's keystore: /home/david/.ros/sros/keystore/nodes/master all startup certificates are present ROS_MASTER_URI=https://david-VirtualBox:11311/ ERROR: unable to retrieve /run_id from parameter server The traceback for the exception was written to the log file [master] killing on exit You can find the **master log** [HERE](https://www.dropbox.com/s/qc59bv2s21ljn74/master.log?dl=0) and the **roslaunch log** [HERE](https://www.dropbox.com/s/wz9r9du3060valt/roslaunch-david-VirtualBox-8839.log?dl=0). @ruffsl, can you perhaps let me know what I am doing wrong? Thank you in advance!

Why I have to run a node twice to make it work?

$
0
0
Hi, I have just written a node that subscribes to a topic, however, the first time I make rosrun it doesnt start, I must "stop" the node with CTRL+C, then again rosrun, and magically this second time it works. The problem started when I tried to subscribe to the topic, so here is my definition of the subscriber and the callback: subscriber_ = nh_private.subscribe("/sim/objects_ground_truth", params_.msg_queue_size, &Testnode::callbackSubscriber, this, ros::TransportHints().tcpNoDelay()); void Testnode::callbackSubscriber(const automated_driving_msgs::ObjectStateArray::ConstPtr& msg) { ROS_INFO("Say Hi\n"); } Does anyone know what is happening here?

when i study the rviz:Markers: Sending Basic Shapes (C++), i come across some problem: when i run this order: rosrun using_markers basic_shapes, it told me that "Please create a subscriber to the marker",so how to solve this problem?

$
0
0
1.my rosdistro: indigo; my ros workspace is catkin. 2.my tutorial:[link text](http://wiki.ros.org/rviz/Tutorials/Markers%3A%20Basic%20Shapes) 3.and then when i run :rosrun rviz rviz, it come up with nothing in my rviz, like this picture:no fixed frame, no shape on the plane. ---------- - List item

Problem with robot_upstart

$
0
0
I am trying to install robot_upstart for my package serge@media:~/NetBeansProjects/ROS_beginner_tutorials/ros_ws$ rosrun robot_upstart install beginner_tutrorials/launch/m1.launch But I get the error Unable to locate path launch/m1.launch in package beginner_tutrorials. Installation aborted. I already entered the command source ./devel/setup.bash And am definitely sure that it it works, because rosrun beginner_tutorials talker works properly. And if I do not enter source command I can't run the talker, so the source is added Also when I enter rospack find beginner_tutorials the package can be found. So what can be a cause of the problem? And maybe I understand something wrong about robot_upstart. Does it creates a new launch file or can only write/overwrite data in existing launchfile or maybe it require a ready launchfile?

Works with rosrun but not with roslaunch

$
0
0
Hello, I have a video data being streamed into a local host (to a socket). When I run my executable using rosrun it works well, but when I use roslaunch to run the same node, it says the resource is temporarily unavailable (error from the socket). The error message I get is this: ' process[cmvideo_node-1]: started with pid [9553] VDS: unknown host: __name:=cmvideo_node Can't initialise vds client (returns -2, Resource temporarily unavailable) terminate called after throwing an instance of 'class_loader::LibraryUnloadException' what(): Attempt to unload library that class_loader is unaware of. [cmvideo_node-1] process has died [pid 9553, exit code -6, cmd /home/providentia/Documents/bridge_demo/workspace/cm_sim/devel/lib/cmvideo/cmvideo_node __name:=cmvideo_node __log:=/home/providentia/.ros/log/395ae26a-80d3-11e7-abe7-f48e38a43ac3/cmvideo_node-1.log]. log file: /home/providentia/.ros/log/395ae26a-80d3-11e7-abe7-f48e38a43ac3/cmvideo_node-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done ' I use the following for rosrun: 'rosrun cmvideo cmvideo_node' And I use the following launch file: '' I know it's not a syntax problem, because the error message I get from the roslaunch is not from ros but from my executable file. Thank you for your help in advance!

Works with rosrun but not with roslaunch

$
0
0
Hello, I have a video data being streamed into a local host (to a socket). When I run my executable using rosrun it works well, but when I use roslaunch to run the same node, it says the resource is temporarily unavailable (error from the socket). The error message I get is this: ` process[cmvideo_node-1]: started with pid [9553] VDS: unknown host: __name:=cmvideo_node Can't initialise vds client (returns -2, Resource temporarily unavailable) terminate called after throwing an instance of 'class_loader::LibraryUnloadException' what(): Attempt to unload library that class_loader is unaware of. [cmvideo_node-1] process has died [pid 9553, exit code -6, cmd /home/providentia/Documents/bridge_demo/workspace/cm_sim/devel/lib/cmvideo/cmvideo_node __name:=cmvideo_node __log:=/home/providentia/.ros/log/395ae26a-80d3-11e7-abe7-f48e38a43ac3/cmvideo_node-1.log]. log file: /home/providentia/.ros/log/395ae26a-80d3-11e7-abe7-f48e38a43ac3/cmvideo_node-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done ` I use the following for rosrun: `rosrun cmvideo cmvideo_node` And I use the following launch file: `` I know it's not a syntax problem, because the error message I get from the roslaunch is not from ros but from my executable file. Thank you for your help in advance!

rosrun tab completion ignore certain directory

$
0
0
Hi everyone, I've got a problem with `rosrun`. I'm working on a company computer with Ubuntu 16.04. On this system the home folder of my user is located in a path like `/home/companyname/username`. I certainly have access to this path but not directly to `/home/companyname`. The result is that tab completion of `rosrun` always greets me with an error message like [rospack] Warning: error while crawling /home/companyname: boost::filesystem::directory_iterator::construct: Permission denied: "/home/companyname" and several other directories that I don't have access to. Can I somehow teach `rosrun` to ignore particularly these paths where I know I don't have access? Thank you

Is it possible to run nodes without source ?

$
0
0
Hi, I'm working with ROS Kinetic in docker. I'm doing several thing through jenkins and several scripts to put my project (wrapped with ros) and all the dependency in the docker. As I want to keep my docker as light as possible I would like to remove all the source code from the package. The ros project is orbslam (https://github.com/raulmur/ORB_SLAM2) with some update to publish the transform and some other data. All the ros part is working well in the docker. But is there a way to "ros run" my RGBD app without having source code in the docker ? rosbuild isn't creating any exe that I could run without source ? Maybe only with lib .so ?

How to know which package is being used when two packages with same name are installed at different location?

$
0
0
Hi, I have installed Hokuyo_node deprecated version from github. I already have Hokuyo_node installed while installing ROS. Now, when I use `rosun hokuyo_node hokuyo_node`, how do I make sure which package is being used? thanks,

something is wrong when i run turtlesim_node

$
0
0
I am a beginner, I am learning ROS.org I use the ‘indigo’ version when i run this "rosrun turtlesim turtlesim_node" The screen display [ERROR] [1505802741.783016851]: [registerPublisher] Failed to contact master at [localhost:11311]. retrying... How to resolve this problem?

error while loading shared libraries

$
0
0
I want to use shared objects as libraries. The .so files of them are at my disposal. I created a catkin_package. That package contains a source, include and lib folder (where I put the .so files) My CMakeLists.txt of the package is the following: cmake_minimum_required(VERSION 2.8.3) project(yocto3d) find_package(catkin REQUIRED COMPONENTS) catkin_package() include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(yocto3d src/main.cpp) target_link_libraries(yocto3d ${catkin_LIBRARIES} ${PROJECT_SOURCE_DIR}/lib/libyapi.so.1.0.1 ${PROJECT_SOURCE_DIR}/lib/libyocto.so.1.0.1) Everything compiles without warnings and errors, but when I run rosrun yocto3d yocto3d I get the following error (can't find the libraries) /home/dh/catkin_ws/devel/lib/yocto3d/yocto3d: error while loading shared libraries: libyocto.so.1.0.1: cannot open shared object file: No such file or directory What am I missing?

Can't execute rosjava Nodes. RosRUn not found Exception

$
0
0
I`ve been able to build and execute the tutorial_pubsub. Then i created a new Rosjava package in an existing catkin_ws. When i run gradle install and gradle installApp it all compiles right. But when i now try to execute these new nodes: scryer@Scryer:~/catkin_ws/src/rosjava_foo$ ./build/install/rosjava_foo/bin/rosjava_foo ben.dude.Listener i get: Exception in thread "main" java.lang.NoClassDefFoundError: org/ros/RosRun Caused by: java.lang.ClassNotFoundException: org.ros.RosRun at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.ros.RosRun. Program will exit. What am i missing to execute Nodes that are not in the rosjava folder?

How to pass rosparam yaml file on rosrun cmd line

$
0
0
Is there a way to pass rosparam yaml file on rosrun cmd line but do rosrun ptam ptam image:= /camera/image_mono _rosparam=PtamFixParams.yaml

rosrun vs roslaunch to run a single node, any difference?

$
0
0
Hi everyone! Well, in my understanding `launch` files are meant to launch a node or so many nodes at a time and allow setting parameters dynamically , remapping and making sure that nodes don't stop if `respawn` is set to `True` and so many other stuff. I was wondering what is the difference between: and roscore& rosrun my_package my_node There shouldn't be any difference ?! In my case, when using `rosrun`, my node was crashing every 30 min and no ros logs where generated but when using `roslaunch` instead, it didn't crash for hours and the log files where saved successfully. Is it just a coincidence!? or does the `roslaunch` command run nodes in a more *coherent* way? I would be pleased if you could explain this to me... Thanks! ---------- Edit 1 ---------- In response to john.j.oneill 's comment Basically I'm running the node from a bash script, `start_my_node.sh` and I do use the `&` after the `rosrun` command, my script is as follows: #!/bin/bash #ROS exportations #ROS source roscore& sleep 1 rosrun my_package my_node& So it is not about having a lot of text in the output? Is using a similar script a good way to start ros nodes?

rosrun crash on auto-complete (tab)

$
0
0
dear all, i am using ros kinetic and ubuntu 16.04. since a few days I recognize the fact that if I hit tab after typing rosrun to see the available packages the console freezes and dies after a few seconds. when I remove the catkin workspace from the .bashrc I do not see that phenomena. I am grateful for any hints gerald

rosrun gets held

$
0
0
Hello, I try to launch a node by rosrun. But when on terminal I write rosrun and give pckage name, it gets held. And screen gets crash.

rosrun beginner_tutorials listener.py results in no output

$
0
0
HI All I'm using ubuntu 16/04 along with python for writing nodes. I just have few hours experience on ROS. I pushed rosrun beginner_tutorials listener.py after defining the source but this resulted in no output ust the cursor blinking for few times then stagnant. I rechecked the CMakeLists.txt but couldn't find any any dependencies in it with reference to tutorials (**I'm not sure though**) Sincerely

python syntax error for rosrun .py script

$
0
0
Hello I'm a noob at python, I downloaded this github package (turtlesim_hunter) Then when I rosrun I get a syntax error: knives@knives:~/catkin_ws/src/turtlesim_hunter/src/turtlesim_hunt/Scripts$ rosrun turtlesim_hunt hunt.py File "/home/knives/catkin_ws/src/turtlesim_hunter/src/turtlesim_hunt/Scripts/hunt.py", line 151 print "Found #" + str(huntedTurtles) + " after " + str(finalTime) + " Current Avg: " + str(totalHuntTime / huntedTurtles) ^ SyntaxError: invalid syntax The issue is at line 151 in the hunt.py script: https://github.com/tiedyedguy/turtlesim_hunter/blob/master/src/turtlesim_hunt/Scripts/hunt.py print "Found #" + str(huntedTurtles) + " after " + str(finalTime) + " Current Avg: " + str(totalHuntTime / huntedTurtles) I don't know whats wrong and I can't google myself to a specific answer, is the issue that this was written with python 3 and I only have python 2.7 installed? I highly doubt this guy has an error in his code since it's working for him: https://www.youtube.com/watch?v=LywSOGRtFLY
Viewing all 197 articles
Browse latest View live


Latest Images

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