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

Flash's profile - activity

2024-01-04 05:34:52 -0500 received badge  Famous Question (source)
2024-01-04 05:34:52 -0500 received badge  Notable Question (source)
2023-08-08 16:11:25 -0500 received badge  Famous Question (source)
2023-07-29 14:20:51 -0500 received badge  Famous Question (source)
2023-05-22 07:56:04 -0500 received badge  Famous Question (source)
2023-04-10 10:41:10 -0500 received badge  Famous Question (source)
2023-03-01 13:48:17 -0500 received badge  Notable Question (source)
2023-02-11 08:49:28 -0500 received badge  Notable Question (source)
2023-01-03 12:47:52 -0500 received badge  Notable Question (source)
2022-11-21 07:43:43 -0500 received badge  Popular Question (source)
2022-11-21 07:43:43 -0500 received badge  Notable Question (source)
2022-11-08 09:38:00 -0500 received badge  Famous Question (source)
2022-10-28 17:26:50 -0500 received badge  Notable Question (source)
2022-10-28 17:26:50 -0500 received badge  Famous Question (source)
2022-10-23 20:34:30 -0500 marked best answer How to Run ros2 launch file using service file

Hi, I am trying to run launch file in ros2 using service file but I am unable to do it.

[Unit]
After=network-online.target
Description=desc

[Service]
Environment=source home/$USER/dev_ws/install/setup.bash
ExecStart=ros2 launch topics topic.launch.py
RemainAfterExit=no
Restart=on-failure
RestartSec=2s

[Install]
WantedBy=user.target

This is the error I am getting

Invalid environment assignment, ignoring: source
Feb 09 09:59:54 USER-pc systemd[1]: /etc/systemd/system/name.service:6: Invalid environment assignment, ignoring: home/USER/dev_ws/install/setup.bash
Feb 09 09:59:54 USER-pc systemd[1]: /etc/systemd/system/name.service:7: Executable "ros2" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Can anyone please helpme

2022-10-23 20:34:30 -0500 received badge  Good Answer (source)
2022-10-23 20:34:30 -0500 received badge  Enlightened (source)
2022-10-19 13:45:23 -0500 received badge  Famous Question (source)
2022-10-17 05:48:10 -0500 received badge  Famous Question (source)
2022-10-07 07:14:44 -0500 received badge  Famous Question (source)
2022-09-20 14:11:53 -0500 received badge  Famous Question (source)
2022-09-07 07:07:54 -0500 received badge  Famous Question (source)
2022-08-11 13:28:11 -0500 received badge  Famous Question (source)
2022-07-27 10:07:35 -0500 marked best answer Rviz2 Crash

Hi,
I am using ROS2 Foxy on the ubuntu20 system. when I launch rviz2 it crashes with the below error message.

[rviz2-1] 1650910831.701056240 [rviz2] [ERROR] InternalErrorException: Vertex Buffer: Out of memory in GLHardwareVertexBuffer::lock at /tmp/binarydeb/ros-foxy-rviz-ogre-vendor-8.2.6/obj-x86_64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GL/src/OgreGLHardwareVertexBuffer.cpp (line 125)
[rviz2-1] terminate called after throwing an instance of 'Ogre::InternalErrorException'
[rviz2-1]   what():  InternalErrorException: Vertex Buffer: Out of memory in GLHardwareVertexBuffer::lock at /tmp/binarydeb/ros-foxy-rviz-ogre-vendor-8.2.6/obj-x86_64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GL/src/OgreGLHardwareVertexBuffer.cpp (line 125)

Below are the details of my graphics card

*-display                 
       description: VGA compatible controller
       product: GP107M [GeForce GTX 1050 Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:152 memory:c2000000-c2ffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:6000(size=128) memory:c0000-dffff
*-display
       description: Display controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:150 memory:c4000000-c4ffffff memory:a0000000-afffffff ioport:7000(size=64)

Thanks in advance.

2022-07-27 07:47:58 -0500 received badge  Famous Question (source)
2022-07-26 07:50:25 -0500 received badge  Famous Question (source)
2022-07-25 11:29:53 -0500 commented answer Creating custom msg message vs sending data on topic via string

internal communication in terms of when you are not sharing those topics publicly

2022-07-25 08:44:41 -0500 marked best answer Creating custom msg message vs sending data on topic via string

Hi,
I had a dilemma whether to create a custom message that has all the variables of a certain node or to convert those variables to a dictionary and send it as a string on a ROS topic.
So my question is which way is better when we compare it with data transmission. Which one will be faster and consume less memory?
Thanks in advance.

2022-07-25 08:43:42 -0500 commented answer Creating custom msg message vs sending data on topic via string

Only values are transmitted. Thx that's what I was looking for. And I do agree that the topic should have a clear

2022-07-25 08:40:45 -0500 commented answer Creating custom msg message vs sending data on topic via string

Only values are transmitted. Thx that's what I was looking for. And I do agree that the topic should have a clear

2022-07-25 08:40:33 -0500 commented answer Creating custom msg message vs sending data on topic via string

Only values are transmitted. Thx that's what I was looking for. And I do agree that the topic should have a clear i

2022-07-25 08:40:17 -0500 commented answer Creating custom msg message vs sending data on topic via string

Only values are transmitted. Thx that's what I was looking for. And I do agree that the topic should have a clea

2022-07-25 08:40:05 -0500 commented answer Creating custom msg message vs sending data on topic via string

Only values are transmitted. Thx that's what I was looking for. And I do agree that the topic should have a clear

2022-07-24 11:09:44 -0500 commented answer Creating custom msg message vs sending data on topic via string

I was thinking that since using a custom message will have multiple fields means each field will have a key and values k

2022-07-24 11:09:00 -0500 commented answer Creating custom msg message vs sending data on topic via string

I was thinking that since using a custom message will have multiple fields means each field will have a key and values k

2022-07-24 11:08:42 -0500 commented answer Creating custom msg message vs sending data on topic via string

I was thinking that since using a custom message will have multiple fields means each field will have a key and values k

2022-07-24 11:03:38 -0500 received badge  Popular Question (source)
2022-07-21 13:31:17 -0500 edited question Creating custom msg message vs sending data on topic via string

creating custom msg message vs sending data on topic via string Hi, I had a dilemma whether to create a custom message

2022-07-21 13:31:06 -0500 edited question Creating custom msg message vs sending data on topic via string

creating custom msg message vs sending data on topic via string Hi, I had a dilemma whether to create a custom message

2022-07-21 13:30:34 -0500 asked a question Creating custom msg message vs sending data on topic via string

creating custom msg message vs sending data on topic via string Hi, I had a dilemma whether to create a custom message

2022-07-21 11:11:41 -0500 marked best answer How to read ros2 bag file in a node

Hi,
I was wondering is there a better method to read ros2 bag files inside the ros2 node, I just want to send a command to run the bag files.
The only source I found is this but this requires me to include this package in my workspace, which I am trying to avoid it or might be I am not importing that library properly. I assume there might be a better solution that can help me to do this.
Thanks in advance

2022-07-21 11:10:16 -0500 answered a question How to read ros2 bag file in a node

Hi, Just in case anyone wondering how to solve this there is one non-ROS method. I used the subprocess package from pyth

2022-07-21 10:58:53 -0500 received badge  Famous Question (source)
2022-07-18 08:15:46 -0500 received badge  Popular Question (source)
2022-07-14 20:36:45 -0500 marked best answer How to provide same parameter for multiple nodes using parameter file

Hi, I was writing a parameter file for multiple nodes and was wondering if I can pass the same parameter for multiple nodes without me specifically mentioning it in the parameters list of each node. like

lidar_data:
  ros__parameters:
    robot_name: "BOT02/"


gpio_reader:
  ros__parameters:
    robot_name: "BOT02/"


gpio_writer:
  ros__parameters:
    robot_name: "BOT02/"

Over here I have passed robot_name to each node and in the future, if I want to change the name I have to replace it for each node. Is there something like declaring on the top of the parameter file like we do with packages and that variable is passed on wherever is required?

Thanks in advance.