Followed this [TF ROS tutorial](http://wiki.ros.org/tf/Tutorials/Introduction%20to%20tf)
**Incurred error:** 
TF status is 'warn'. This reads three error messages:
1. No transform from [turtle1] to frame [map]
2. No transform from [turtle2] to frame [map]
3. No transform from [world] to frame [map]
I've tried( one at once ) these commands, viz.,
$ rosrun tf static_transform_publisher 0.0 0.0 0.0 0.0 0.0 0.0 turtle1 turtle2 100
$ rosrun tf static_transform_publisher 0.0 0.0 0 0.0 0.0 0.0 turtle1 turtle2 world
$ rosrun tf static_transform_publisher 0.0 0.0 0 0.0 0.0 0.0 turtle1 turtle2 world 100
to resolve this, while this command is running on one of the terminals $ rosrun tf static_transform_publisher 0.0 0.0 0.0 0.0 0.0 0.0 map my_frame 100
I've also followed [this ROS Q&A thread](https://answers.ros.org/question/10762/no-transform-from-base_link-to-map/), but didn't help in this case.
What am I missing in here? Please correct and clarify.
Any constructive discussions or leads will be much appreciated. Thanks in advance.
↧
No transform from [base_link] to frame [map]
↧
Remap client name for dynamic reconfigure
For setting up a dynamic reconfigure client I need to specify the name of the node I like to reconfigure, e.g. in Python:
self._client = dynamic_reconfigure.client.Client(some_node_name)
Now, I'd like to remap ```some_node_name``` in my roslaunch file to make it easy to use in different contexts, e.g.
However, this doesn't work. So far I only managed to modify ```some_node_name``` via parameters.
Is there a way to remap the node name of the dynamic reconfigure client?
↧
↧
parse $(find ...) from python?
Hi everyone,
how can I make use of the ROS API to parse roslaunch macros like `$(find )`?
Thanks
↧
I am workin with Ubuntu 16.04 - ROS Kinetic
I am having not success in launch a file: I am training the book "Mastering ROS for Robotics programming", In page 69, I am having a problem to visualize the pan and tilt mechanism in RViz....I have already checked the file urdf called view_demo that I made, the check was well succed but when I give Ros launch view_demo in mastering_ros_robot_descritpion. The terminal gives me the following message error: "[view_demo.launch] is neither a launch file in package [mastering_ros_robot_descritption_pkg] nor is [mastering_ros_robot_descritption_pkg] a launch file name The traceback for the exception was written to the log file" What does this mean? How Can I solve this problem? Can someone help me please?
↧
UnicodeEncodeError while running roslaunch (kinetic)
Hi there, I'm very new to ROS.
I'm trying to connect my lidar (EAI ydlidar X4) with hector mapping, and downloaded from
git clone https://github.com/tu-darmstadt-ros-pkg/hector_slam
I've created a launch file (from tutorial online):
however, when I roslaunch it, I got:
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)
The traceback for the exception was written to the log file
and in the log:
.......
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 365, in resolve_args
resolved = _resolve_args(arg_str, context, resolve_anon, commands)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 376, in _resolve_args
for a in _collect_args(arg_str):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 434, in _collect_args
buff.write(c)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)
[rospy.core][INFO] 2018-10-03 12:28:17,248: signal_shutdown [atexit]
Anyone knows how to solve this?
↧
↧
(hector_slam) plugin error and could not transform laser scan
Hi! I'm exploring the function of the lidar.. (EAI ydlidar x4 if anyone knows..) I can display the scanning data in rviz, but failed to create a map without odometry with hector_mapping.
I tried to install hector and the launch file online, which is:
and changing the two lines in the mapping_default.launch:
after roslaunch, the I still just get the scanning data from rviz, but failed to transform the data to map, I got:
[ERROR] [1538621432.076686366]: Skipped loading plugin with error: XML Document
'/opt/ros/kinetic/share/hector_worldmodel_geotiff_plugins/hector_geotiff_plugins.xml' has no Root Element. This likely means the XML is malformed or missing..
Also:
[ WARN] [1538621450.560298892]: No transform between frames /map and /base_link available after 20.004337 seconds of waiting. This warning only prints once.
[ INFO] [1538621450.874416888]: lookupTransform base_link to laser_frame timed out. Could not transform laser scan into base_frame.
I'm very new to this....Anyone knows how to solve it?
↧
Roslaunch machine tag on include
I want to run a launch file on a remote machine. Is it possible to specify a machine for an call in a roslaunch file?
↧
roslaunch - get parameter files loaded
Hi all,
[roslaunch](http://wiki.ros.org/roslaunch/Commandline%20Tools) has some options to get the launch files included and nodes launched. However, I want to know which parameter files (yaml) would be loaded when running a launch file with a given set of arguments. Is that possible? Using the python API would also be OK for me.
↧
Roslaunch by using click button in rqt
Hi everyone can someone tell me the procedure to launch a file by using click button on RQT?
I have done just writing to terminal for every click on button. Now i want to do roslaucnh for example starting the navigation roslaunch.
Thanks
↧
↧
Roslaunch by using click button in rqt
Hi everyone can someone tell me the procedure to launch a file by using click button on RQT?
I have done just writing to terminal for every click on button. Now i want to do roslaucnh for example starting the navigation roslaunch.
Thanks
↧
rospy.ServiceProxy master port mismatch
On my dev machine I run ros master on default port `11311` via `ROSLaunchParent` as follows:
os.environ["ROS_IP"] = ""
os.environ["ROS_MASTER_URI"] = "http://:11311"
roslaunch = ROSLaunchParent('', [], is_core=True, port=11311)
roslaunch.start()
stdout states that the roslaunch server is running on port `43121` (changes randomly between starts of roslaunch):
started roslaunch server http://:43121/
The master seems to be started on port `11311`:
auto-starting new master
process[master]: started with pid [15304]
ROS_MASTER_URI=http://:11311/
I use [`docker-py`](https://docker-py.readthedocs.io/en/stable/index.html) (`dc` is a `client`, `di` is an `images` instance, `dn` is a `network`) to run a ROS node `` in a docker container which connects to the dev machines master.
dn = dc.networks.create(name='some_test', driver="bridge")
some_node = dc.containers.run(image=di[0].id, environment=["ROS_IP=", "ROS_MASTER_URI=http://:11311"], name='', network='test', command=rosrun_command, detach=True, tty=True)
`import rosnode; nodes = rosnode.get_node_names(); print(nodes)` lists `/` (and `/rosout`). `some-node` is (at least) discoverable in the network. So far so good.
If I send multiple service requests with
rc_itempick_start = rospy.ServiceProxy('//', )
rc_itempick_start()
a random port is used instead of `11311`:
core.py WARNING Unknown error initiating TCP/IP socket to :35516 (rosrpc://:35516)
(...)
error: [Errno 113] No route to host
core.py WARNING Unknown error initiating TCP/IP socket to :60739 (rosrpc://:60739)
(...)
error: [Errno 113] No route to host
(etc.)
Can someone help out in cross-checking what I missed?
↧
Can't get double parameter in node (C++)
I have a launch file with:
The same launch file starts a ROS node, *my_node* . In *my_node*'s main method I have the following, to get that parameter:
ros::init(argc, argv, "my_node");
ros::NodeHandle nh;
string param_name;
if(!nh.searchParam("/my_intensity", param_name) ){
ROS_ERROR("Can't find param.");
return -1;
}
double it;
ros::param::get(param_name, it);
ROS_INFO("Intensity is %f.", it);
...
Running this prints `Intensity is 0.0.`. Although when I run `rosparam get /my_intensity` in a terminal window I get the correct value (1.2).
When I change the type of `it` to string, what I get is an empty string. The same approach always worked for my other nodes. So I am really confused. What may be causing this behavior?
Thank you.
System: Ubuntu 16.04, ros-kinetic.
↧
Invalid tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code[1]
while executing ros4mat I am getting this error:
tanisha@tanisha-HS:~$ roslaunch ros4mat ros4mat.launch
WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
Invalid tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1].
Param xml is ``
↧
↧
can we dynamically turn off respawn attribute?
we have a node has respawn being true in the launch file, for debugging purpose, when the node dies, instead of shut down the whole stack, we would like to only turn off this attribute, like setting it to false dynamically, then use gdb to launch this node? do we have a command could help do so? Thanks in advance!
↧
Launching roscore from python IDE
I am looking to create a Python method which will edit the bashrc to give it the proper IP addresses, source the file, and then start roscore. The work I am doing is in the PyCharm IDE.
The bashrc file looks good, but when I run roscore by using either the os.system or subprocess.popen commands and calling "/opt/ros/kinetic/bin/roscore", the roscore bringup crashes with the error:
Traceback (most recent call last):
File "/opt/ros/kinetic/bin/roscore", line 36, in
from rosmaster.master_api import NUM_WORKERS
ImportError: No module named rosmaster.master_api
I understand that protocol is to launch roscore using roslaunch from the command line, but for my purposes that won't work. Any advice as to how to successfully launch roscore (and other ROS files) from the command line using an IDE?
↧
Is it possible to launch non ros applications with roslaunch?
Hi,
I would like to know whether it's possible to launch non ros applications with roslaunch? And if so, how can it achieved?
Thanks for the answer.
↧
Can I run a bash script using roslaunch?
I read http://answers.ros.org/question/12327/is-there-a-way-to-wait-for-certain-topics-to-be-published-in-a-launchfile/ and http://answers.ros.org/question/33772/run-shell-command-from-launch-script/ questions and I am confused. I see people mention the possibility of running bash scripts via .launch files but I can't find any documentation describing how to do it. Is it even possible?
(I'm trying to delay the launch of a gpsd_client node because during startup it scans and usurps other serial ports.)
↧
↧
ROSLaunch: [] is neither a launch file in package [] nor is [] a launch file name
Hello,
I'm new ROS user. I've already installed the OS, but when I type "roslaunch kobuki_node minimal.launch --screen" it gives me an error.
I'm using Ubuntu 17.10 Artful Aardvark (amd64)
This is coppied from my terminal:
sgzhelev@Lenovo-Legion-Y520-15IKBN:~$ roslaunch kobuki_node minimal.launch --screen
RLException: [minimal.launch] is neither a launch file in package [kobuki_node] nor is [kobuki_node] a launch file name
The traceback for the exception was written to the log file
Thank you for all advices!
-- Steve
↧
How does remap work internally?
I've been trying to understand what happens when a topic is remapped by a launch file. Any ideas on what the internal system is doing? Is it possible to directly have nodes run without wrapping them in launch files and still have topic remapping abilities?
↧
string operations inside roslauch file
I have an argument defined inside the launch file as shown below-
I want to define another argument, which is basically the string inside the first two forward slashes. For the example above, it should be similar to following-
I am wondering if there is an automatic way to find out this string. I can use the following python code inside my node but I feel that this simple operation could be possible inside launch file-
# get the name as the first word between two leftmost slash characters
def get_sensor_name(topic):
import re
all_slash = [m.start() for m in re.finditer('/', topic)]
name = topic[all_slash[0] + 1 : all_slash[1]]
return name
**How to define arg name from arg velocity inside launch file?**
↧