Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [function]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

Unable to use functions from custom imported module

Hi there, I'm a novice experimenting on making and using custom modules (python) having functions that is required for my rosnode. I can do the same in normal python, but I am struggling with the ...
user avatar
0 votes
1 answer
80 views

no matching function for call to

Hey everybody, I'm working on a node that uses a service to repeat a string a variable amount of times. for this i made the following srv file: ...
user avatar
0 votes
1 answer
7 views

Using image callback and videocallback OpenCV Kinetic

Hi all! First question in the site! Hope you guys can help me out, I've got a problem by trying to use an image inside a function. In this function I got an example of edge detector from the camera. I ...
user avatar
0 votes
1 answer
2 views

How to define a cost function for the 'general state cost integral' optimization objective of OMPL through MoveIt?

Hi, I'm relatively new to OMPL and MoveIt, but I'm fairly certain that I understand the capabilities of OMPL and that there are no tutorials for this. Maybe I'm just missing something. I'm hoping ...
user avatar
0 votes
1 answer
5 views

dyn_recfg c++: compiling but no items in rqt_reconfigure

HI, I try to get the dynamic reconfigure to run in c++. My Project is compiling without problems, but the variables do not appear in rqt? I have a class based structure like following: //Class ...
user avatar
0 votes
1 answer
7 views

How to calculate x,y,z through force_torque sensor values

I need to know how I can perform a function to obtain x, y, z position values through the values Fx,Fy,Fz,Tx,Ty,Tz of the force/torque sensor. Originally posted by carlos_ on ROS Answers with karma: ...
user avatar
0 votes
1 answer
2 views

subscribe to two topics of int and sensormsg types

I want to subscribe to topics that are of types int and sensor_msg .I want only one call back function to proces these two messages together .Please give an example code for this: Originally posted ...
user avatar
0 votes
2 answers
68 views

What is ConstPtr&?

Hey All, I'm still new to ROS and C++. I'm having trouble understanding what the ConstPtr& does when writing the callback function for a simple subscriber: ...
user avatar
0 votes
1 answer
8 views

Subscribe to Multiple Topics and Callback Function

Hello, I would like to write a node in python which subscribes to multiple topics using only one callback function. What's the correct way to do this? For instance, I want to compare the values ...
user avatar
0 votes
1 answer
5 views

Wrapping function callback around a method (function)

I would like to know if there there a way to wrap a ROS class callback function in a method to be used as a convenience API. I know that we could possibly achieve this via adapter design pattern, but ...
user avatar
0 votes
1 answer
3 views

Calling a function in a function

Hi, can help me to check what is my mistake in the following code please? I did try to refer to http://wiki.ros.org/roscpp_tutorials/Tutorials/UsingClassMethodsAsCallbacks but fail. Thank you. ...
user avatar
0 votes
2 answers
5 views

main function doesn't find functions of my class: ROS or c++ error?

hello everyone I wrote my class structure in a header file (stage_listener.h): #ifndef sl_H #define sl_H #include "ros/ros.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/Pose.h" #include "...
user avatar
0 votes
1 answer
14 views

Callback function to a Class member function

Hi all, this question might have just a trivial answer, but because i'm new to ROS and might be looking at the wrong places, I still can't figure it out. So, I want to create a service where the ...
user avatar