Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
53 views

ROS1 Custom messages generates strange memory graph pattern when using multiple string types

In ROS1 Noetic, I have the following custom message named Test.msg: int32 did string a string b And I have another custom message TestList.mgs: Test[] testList In ...
Enikő's user avatar
  • 11
1 vote
1 answer
65 views

Should I unregister from Publishers/Subscribers when I terminate a ROS node by exiting the script?

Hi everyone. So my question is pretty much what the title is. Is it good practice or even necessary to unregister from ROS publishers or subscribers I used inside my ROS node before terminating the ...
user avatar
0 votes
2 answers
5 views

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

get all the active namespaces rospy | roscpp

In my project, multiple robots may be spawned both at launch and at runtime, each under a certain namespace. Generally, that is 'robot_ID' where ID == a robot-...
user avatar
0 votes
1 answer
5 views

python node bad interpreter

the c++ version is working but python shows the following : rosrun hello_world talker.py /opt/ros/lunar/bin/rosrun: /home/kamal/catkin_ws/src/hello_world/script/talker.py: usr/bin/env: bad ...
user avatar
0 votes
1 answer
3 views

Where I can find a list of dependencies?

I don't know where find or what dependencies to use when I will create a package dependencies. It's possible create a depends? For example, in the Tutorial I see rospy, roscpp and std_msgs. Where I ...
user avatar
0 votes
1 answer
32 views

Where are my node log files?

We have a system with a few dozen nodes, started from a top-level launch file consisting mostly of <include> tags. Most of them are ...
Rick's user avatar
  • 249
0 votes
1 answer
4 views

callback models for roscpp and rospy

For example, I have a ROS node that has several callback and timers. Those callbacks and timers need to read or modify the same global variable. Should I use mutex or other locking mechanism to ...
user avatar
0 votes
1 answer
20 views

Rospy and udp sockets

Hi, I want to send data (x,y and yaw values) over UDP to a system that isn't running ROS (a myRIO or any other micro-controller) I am using a code written in in python (ROSpy) by someone in else that ...
user avatar
0 votes
1 answer
24 views

image_transport republish One Time Use

Folks, I have several rosbags, 8 seconds long each, which only contain compressed depth images. Since rospy does not support compressedDepth (as far as I know) I am using ...
user avatar
0 votes
1 answer
2 views

running rosmsg show from code

Hi, is there a way (possibly in Python) to call the command line command rosmsg show from code, passing as an argument the name of the message/service and getting ...
user avatar
0 votes
1 answer
11 views

Issues with header seq value (first value in rospy is 1, first value in roscpp is 0, access from roscpp)

I was planning to use Header seq value to verify that communication in my system of ROS-nodes (using ROS Indigo) is synchronized, however, I discovered a couple issues with that value. If that's a bug,...
user avatar
0 votes
3 answers
2 views

ROS Answers SE migration: c++ or python

I am currently using python to make stuff in ROS, would it be worthwhile to learn cpp? Are there things you can't do with python? Is it easier to program things with c++? Originally posted by Mr. CEO ...
user avatar
0 votes
1 answer
6 views

rospy Reaction to ROSCore Shutdown

When running a node in python (or C++), is there a way to detect the loss of ROSCore or the ROSMaster? I understand how to detect shutdown of the node itself, but need to be able to handle, in my own ...
user avatar
0 votes
1 answer
16 views

Using spinOnce inside Services

I would like to know whether it is safe or bad practice to spin ROS inside a while loop that exists inside a service callback. I am unable to use actions for this particular goal, and have confirmed ...
user avatar
0 votes
1 answer
5 views

import rospy when calling a python script from a c++ executable

I have a Robai Cyton gamma arm that I'm attempting to connect to with ROS by trying to call a Python script from a C++ program. What I want to do is use C++ and OpenCV to get a video from an Xbox ...
user avatar
0 votes
1 answer
14 views

Difference between rosrun and directly launching an executable

What are the differences between : rosrun mynode program And : cd /path/to/mynode ./program Why is the first (I assume) ...
user avatar
0 votes
1 answer
47 views

rospy subscriber buffer length

Hi This is from the C++ subscriber tutorial ...
user avatar
0 votes
1 answer
1 view

How to call methods defined in python in a node written in C++

Hi, I want to call quat_to_angle() and normalize_angle() methods defined in calibrate.py in the turtlebot_calibration package in my node written in C++. There is no header file generated of calibrate....
user avatar
0 votes
1 answer
1 view

roscpp failure to call service written in rospy

Is it ok to write a Ros node in cpp to call a ros service written in python? I'm able to use "rosservice call /service" to do that, but using cpp to call the same service just didn't work. ...
user avatar
0 votes
3 answers
82 views

How to set verbosity/logger levels programmatically?

Hi All, Is there a way to set verbosity/logger levels programmatically (up to node levels if possible)? How? I have looked at here and here. It seems that I should somehow use ...
user avatar
0 votes
1 answer
5 views

How can a C++ state machine communicate with a python script?

Hi, I am wondering how I could tell a python script to execute from a c++ code. My specific problem is, to activate a pocketsphinx script to recognize spoken commands. But pocketsphinx is written in ...
user avatar
0 votes
1 answer
2 views

Do the default subscription constructors block?

Please forgive me if documentation on this issue is the proverbial snake that should have bit me, but based on some initial explorations it looks like the ...
user avatar
0 votes
1 answer
31 views

roscpp using simulated time

I am trying to run gmapping_slam on some old data to improve the position estimate and during my use of the resulting /map -> /odom I realized the stamp on the transforms were using the current ...
wjwwood's user avatar
  • 6,547
0 votes
1 answer
9 views

is tf.transformations.quaternion_from_euler equal with tf::createQuaternionMsgFromYaw in functional?

is tf.transformations.quaternion_from_euler equal with tf::createQuaternionMsgFromYaw in functional? Originally posted by gong on ROS Answers with karma: 164 on 2011-07-12 Post score: 1
user avatar