ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

dee-mikey's profile - activity

2021-10-22 08:35:14 -0500 received badge  Famous Question (source)
2021-07-09 15:15:21 -0500 asked a question Handling empty ros message

Handling empty ros message I am publishing data to a ROS topic in a node. Basically when an object is detected it publis

2021-07-09 14:55:15 -0500 marked best answer Get ros params from parameter server

I have 2 ROS nodes running sequentially from a script. Node1 sets some params in the parameter server which are to be used by node2. But node2 starts after node1 is killed. Currently I have a yaml config file where the dummy values of the params are saved and I load this file in the launch file. As soon as node1 starts I can see the params being updated in the server to new values. Node1 is killed and node2 starts. But node2 is using the dummy values set in yaml

How do I make sure node2 uses new values set by node1 in the parameter server?

using rospy.set_param to set the values in node1 and rospy.get_param in node2 to read the params

2021-06-28 21:17:53 -0500 received badge  Notable Question (source)
2021-06-15 14:20:49 -0500 received badge  Popular Question (source)
2021-06-14 15:16:32 -0500 received badge  Popular Question (source)
2021-06-14 15:15:16 -0500 asked a question Get ros params from parameter server

Get ros params from parameter server I have 2 ROS nodes running sequentially from a script. Node1 sets some params in th

2021-05-19 10:45:07 -0500 received badge  Popular Question (source)
2021-05-14 14:19:46 -0500 received badge  Notable Question (source)
2021-05-13 22:36:18 -0500 received badge  Popular Question (source)
2021-05-13 15:36:58 -0500 commented question Launching 2 ros nodes

My node1 sets some parameters that will be used by node2. So I want the node2 to start after the parameters are set by n

2021-05-13 14:37:12 -0500 asked a question Launching 2 ros nodes

Launching 2 ros nodes Hi I am trying to launch two ros nodes from a launch file. This is how my main launch file looks l

2021-05-13 08:45:37 -0500 marked best answer TypeError: cannot marshal <type 'numpy.uint8'> objects

I am unable to set parameters to the param server using the following code:

hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)

rospy.set_param("lower_h", hsv[:, :, 0].min()) rospy.set_param("lower_s", hsv[:, :, 1].min()) rospy.set_param("lower_v", hsv[:, :, 2].min())

print('lower_h = {}\nlower_s = {}\nlower_v = {}'.format(hsv[:, :, 0].min(), hsv[:, :, 1].min(), hsv[:, :, 2].min()))

I am getting the following error: TypeError: cannot marshal <type 'numpy.uint8'> objects

In the above code I am able to print the values in the terminal but not set the values in the parameter server. Any help will be appreciated.

2021-05-13 08:45:37 -0500 received badge  Scholar (source)
2021-05-12 17:43:11 -0500 asked a question TypeError: cannot marshal <type 'numpy.uint8'> objects

TypeError: cannot marshal <type 'numpy.uint8'=""> objects I am unable to set parameters to the param server using

2021-04-20 10:27:13 -0500 asked a question Find abrupt spike and fall in laser intensity data

Find abrupt spike and fall in laser intensity data I am publishing laser intensity data to a topic continously while the

2021-04-20 10:10:37 -0500 received badge  Notable Question (source)
2021-03-08 07:37:44 -0500 received badge  Enthusiast
2021-02-25 17:39:05 -0500 received badge  Popular Question (source)
2021-02-25 09:04:25 -0500 asked a question Laser rangefinder and monocular camera extrinsic calibration

Laser rangefinder and monocular camera extrinsic calibration I have a laser giving out range data and a monocular camera

2021-02-12 10:48:04 -0500 asked a question Import error: cannot import

Import error: cannot import Hi I have a Python node in which I am trying to import SORT package and use it. I know I can