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

Andromeda's profile - activity

2023-07-28 08:56:49 -0500 commented question Unable to install ROS-humble packages

Maybe you missed this step?

2023-07-28 08:53:47 -0500 commented question Unable to install ROS-humble packages

Maybe you missed this step?

2023-07-27 05:47:54 -0500 commented question Unable to install ROS-humble packages

What happens, if you just try to install any other package on your Ubuntu system or upgrade it? E.g. $sudo apt update $

2023-07-27 05:47:14 -0500 commented question Unable to install ROS-humble packages

What happens, if you just try to install any package on your Ubuntu system? E.g. $sudo apt install vim

2023-07-08 14:14:11 -0500 commented question [ROS2] Understanding get_msg_class

Take a look here: link

2023-07-08 14:11:40 -0500 answered a question ModuleNotFoundError: No module named 'ament_package'

Run colcon without sudo: $colcon build ...

2023-07-08 14:11:06 -0500 edited question ModuleNotFoundError: No module named 'ament_package'

ModuleNotFoundError: No module named 'ament_package' Hi, I am getting the following error when I am trying colcon build

2023-05-17 02:32:28 -0500 commented question Can't publish any message from machine running Ubuntu WSL to my robot

Can you ping the IP-addresses from both direction?

2023-05-12 16:20:49 -0500 answered a question [URDF] What is a dummy link needed for?

It is generally used to reference your robot (base_link) to the world. Since the world is generally a fixed frame withou

2023-05-12 16:20:49 -0500 received badge  Rapid Responder (source)
2023-05-12 04:08:08 -0500 commented question why roslanuch commond show error?

Probably because your file has the name mirla.urdf but you typed mira.urdf (without "l" in the filename)???

2023-05-12 04:02:39 -0500 commented answer No such file or directory: urdf/01-myfirst.urdf

It is not a good idea to run it from that folder. Please note that the argument passed to the model is the path to your

2023-05-12 03:59:17 -0500 commented question Errors with Colcon while setting up

About the setuptools deprecation you can find a quick workaround here. Basically you need to downgrade it. On the other

2023-05-12 03:58:46 -0500 commented question Errors with Colcon while setting up

About the setuptools deprecation you can find a quick workaround here. Basically you need to downgrade it. On the other

2023-05-12 03:57:23 -0500 commented question Errors with Colcon while setting up

About the setuptools deprecation you can find a quick workaround here. Basically you need to downgrade it. On the other

2023-05-12 03:52:46 -0500 commented question Localization using IMU

Yes and no. Mathematically speaking makes sense. On the other side you have to take care of the numeric instability and

2023-05-12 02:35:32 -0500 commented question source ros2 within a python script

Look to this answer

2023-05-12 02:21:01 -0500 commented question source ros2 within a python script

Maybe it is a stupid idea, but could you create 2 different python files: file #1 sources only the setup.bash file and n

2023-05-12 02:20:41 -0500 commented question source ros2 within a python script

Maybe it is a stupid idea, but could you create 2 different python files: file #1 sources only the setup.bash file and n

2023-05-11 12:23:40 -0500 commented question source ros2 within a python script

As far as I know the bash command are active in the shell, where you called them. I really do not know, how it behaves,

2023-05-11 12:22:00 -0500 commented question source ros2 within a python script

How do you call your script? Something like: $python3 myprog.py or like: $ros2 run mypkg myprog ???

2023-05-10 09:49:53 -0500 commented question source ros2 within a python script

I understand your logic, but commands like ros2 run <pkg> <prog> will never run, since ROS doesn't know, whe

2023-05-10 09:49:38 -0500 commented question source ros2 within a python script

I understand your logic, but commands like ros2 run <pkg> <prog> will never run, since ROS doesn't know, whe

2023-04-30 14:26:49 -0500 commented question rate.sleep() blocks node after first callback function

Ok, then I have really no idea... could you try in another distro (galactic, foxy, ...)?

2023-04-28 02:06:59 -0500 commented question rate.sleep() blocks node after first callback function

To be clear: ... executor.spin_once(timeout_sec=0.1) rclpy.spin_once() rate.sleep() ...

2023-04-28 02:06:54 -0500 commented question rate.sleep() blocks node after first callback function

Ok, can you try the same identical code above but putting the following line: rclpy.spin_once() after executor.spin_once

2023-04-28 02:05:54 -0500 commented question rate.sleep() blocks node after first callback function

To be clear: ... executor.spin_once(timeout_sec=0.1) rclpy.spin_once(self) rate.sleep() ...

2023-04-28 02:05:26 -0500 commented question rate.sleep() blocks node after first callback function

To be clear: executor.spin_once(timeout_sec=0.1) rclpy.spin_once(self) rate.sleep()

2023-04-28 02:04:49 -0500 commented question rate.sleep() blocks node after first callback function

Ok, can you try the same identical code above but putting the following line: rclpy.spin_once(self) after executor.spin_

2023-04-28 02:04:17 -0500 commented question rate.sleep() blocks node after first callback function

Ok, can you try the same identical code above but putting the following line: rclpy.spin_once(self) after executor.spin_

2023-04-28 02:02:26 -0500 commented question rate.sleep() blocks node after first callback function

Ok, can you try the same identical code above but putting the following line: rclpy.spin_once(self) after executor.spin_

2023-04-27 16:09:58 -0500 commented question How do I import my robotic arm .stl file into ROS gazebo for simulation,

http://wiki.ros.org/urdf/Tutorials

2023-04-27 16:08:41 -0500 commented question How do I import my robotic arm .stl file into ROS gazebo for simulation,

https://docs.ros.org/en/foxy/Tutorials/Intermediate/URDF/URDF-Main.html

2023-04-27 16:06:26 -0500 commented question why can not get the local velocity??

Post please ALL the code, otherwise it is pratically impossible to help you. Furthermore, open a terminal and type ros t

2023-04-27 16:04:47 -0500 commented question why can not get the local velocity??

Post please ALL the code, otherwise it is pratically impossible to help you. By the way: spinOnce(), if not used correct

2023-04-27 16:03:22 -0500 edited question why can not get the local velocity??

why can not get the local velocity?? i want to get the vehicle velocity,and using velocity to control vehicle. i used r

2023-04-27 16:02:15 -0500 edited question Frames are moving away from global frame

Frames are moving away from global frame Hi everyone, I am using Hector-Slam and AMCL without IMU sensor. At the beginn

2023-04-27 16:01:59 -0500 edited question Frames are moving away from global frame

Frames are moving away from global frame Hi everyone, I am using Hector-Slam and AMCL without IMU sensor. At the beginn

2023-04-27 11:36:01 -0500 commented question rate.sleep() blocks node after first callback function

I have no idea... tomorrow I have access to another PC, where I developed some programs using spin_once and I try to com

2023-04-26 11:18:35 -0500 commented question rate.sleep() blocks node after first callback function

I do not know... In my humble installation, your code works without any change. What happens if you remove that line and

2023-04-26 04:13:45 -0500 commented question rate.sleep() blocks node after first callback function

How do you start your node? Using ros2 run <package> <your_prog> works in my system. The line #!/usr/bin/env

2023-04-21 14:00:24 -0500 answered a question can you install a ROS distro on a windows pc?

First of all, you should start from the official documentation: link. Since I supposed, you want to install ROS2, I gave

2023-04-21 14:00:24 -0500 received badge  Rapid Responder (source)
2023-03-20 04:20:38 -0500 received badge  Nice Question (source)
2023-03-20 04:20:36 -0500 marked best answer Cannot retrieve parameters from YAML file (even if the file is found)

Hi,

I wrote a very simple program in python to read parameters from a YAML file. The YAML file is the following:

mqtt_node:
  ros__parameters:
    variable: 9494.98

and the minimal code of the node is this one:

class mqtt_class(Node):

    def __init__(self):

        super().__init__('mqtt_class')

        print()
        print(self.get_parameter('variable')._value)   # <- here is the problem
        print()
)


def main(args = None):

    rclpy.init(args = args)

    my_publisher = mqtt_class()

    rclpy.spin(my_publisher)


    my_publisher.destroy_node()
    rclpy.shutdown()


if __name__ == '__main__':

    main()

This is the error I get:

 Traceback (most recent call last):
   File "/home/kkk/workspace/install/xxx/lib/xxx/xxx", line 11, in <module>
   load_entry_point('xxx', 'console_scripts', 'xxx')()
 File "/home/kkk/workspace/build/xxx/xxx/xxx.py", line 108, in main
  my_publisher = mqtt_class()
  File "/home/kkk/workspace/build/xxx/xxx/xxx.py", line 54, in __init__
    print(self.get_parameter('variable')._value)
   File "/opt/ros/foxy/lib/python3.8/site-packages/rclpy/node.py", line 512, in get_parameter
    raise ParameterNotDeclaredException(name)
 rclpy.exceptions.ParameterNotDeclaredException: ('Invalid access to undeclared parameter(s)', 'variable')
[ERROR] [zzzz-2]: process has died [pid 19805, exit code 1, cmd '/home/kkk/workspace/install/xxx/lib/xxx/xxx --ros-args -r __xxx:=xxx --params-file /home/kkk/workspace/install/xxx/share/xxx/params.yaml'].

What is wrong with the code?

2023-02-11 10:06:05 -0500 commented question rviz Window Does Not Open

@andya what happens, if you open a terminal and type rviz2 directly?

2023-02-08 12:29:30 -0500 commented question No executable found when create package with colcon

Without looking into your code, will be a guess...

2023-02-08 12:27:38 -0500 commented answer ros2: command not found Ubuntu 22.04 ros_humble [SOLVED]

Then accept please his answer by clicking the green check mark on the left side of his post. So you can mark this questi

2023-02-08 12:24:51 -0500 commented question How to pause gazebo at the start in foxy?

Probably you should provide with version of Gazebo are you using?

2023-02-08 12:23:35 -0500 edited answer Migrate foxy to humble

Only the file setup.cfg. There you should replace the sign - with the sign _ I had many packages implemented for Foxy.