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

Combinacijus's profile - activity

2023-06-07 14:57:54 -0500 received badge  Necromancer (source)
2023-05-23 08:36:28 -0500 received badge  Nice Answer (source)
2023-01-20 14:40:55 -0500 commented answer Catch ctrl-C and Set value

Thanks solved my problem. Normal class destructor __del__() is called but it seems that rospy is already shutdown by tha

2023-01-04 14:27:17 -0500 edited answer collada dae resource not updated in rviz

Pressing Reset in RViz bottom left corner (and probably republishing marker) seems to the job You can test it by renami

2023-01-04 09:28:53 -0500 commented answer Can material colors be applied to Collada (.dae) meshes?

Inside which tag <ambient> should be put?

2023-01-03 13:44:42 -0500 answered a question collada dae resource not updated in rviz

Pressing Reset in RViz bottom left corner (and probably republishing marker) seems to the job You can test it by renami

2022-12-14 08:12:07 -0500 commented answer Print out the contents of a string using ROS_INFO

For some reason c_str() didn't work for me so I used data() instead: ROS_INFO("frame: %s", msg.header.frame_id.data());

2022-11-14 12:50:03 -0500 answered a question Using rosbag to get size of each topic

I modified MumboJumbo code to give human readable output: To run: python rosbag_size_by_topic.py BAG_FILE_PATH or ro

2022-10-23 14:55:26 -0500 edited answer How can generate a list of dependencies from the src folder of a workspace?

This will list all packages found between <exec_depend>, <build_depend>, <run_depend>, <depend>

2022-10-23 14:53:14 -0500 marked best answer ROS2 how to launch rviz2 with config file

I'm coming from ROS1 background and I'm new with ROS2. I want to launch rviz with config file in ROS2 by specifying relative path from package package_name

ROS1 equivalent would be:

<launch>
  <node type="rviz" name="rviz" pkg="rviz" args="-d $(find package_name)/config/config_file.rviz" />
</launch>

What I have in ROS2 is:

from launch import LaunchDescription
from ament_index_python.packages import get_package_share_directory
from launch_ros.actions import Node
import os.path

def generate_launch_description():
    return LaunchDescription([
        Node(
            package='rviz2',
            namespace='',
            executable='rviz2',
            name='rviz2',
            arguments=['-d' + os.path.join(get_package_share_directory('package_name'), 'config', 'config_file.rviz')]
        )
    ])

But this approach has 2 problems:

  1. get_package_share_directory returns path to ...install/package_name/share... but I want .../src/package_name/config/config_file.rviz (just like in ROS1 what $(find package_name) would return) because there's no config_file.rviz in install directory. Even if it was
  2. I want to save new rviz settings to src directory not to install because install is not tracked by git

I searched documentation, answers.ros.org and github but couldn't find the answer. So what is equivalent of $(find package_name) in ROS2? Or maybe all files should be installed in shared directory if so how to deal with problem 2.

2022-10-13 18:07:53 -0500 edited answer How can generate a list of dependencies from the src folder of a workspace?

This will list all packages found between <exec_depend>, <build_depend> and <run_depend> tags from pac

2022-10-13 11:08:01 -0500 commented answer How can generate a list of dependencies from the src folder of a workspace?

@gvdhoorn Oh right. Made new one-liner to address that that return apt packages. Could you check it and see does it have

2022-10-13 11:05:27 -0500 edited answer How can generate a list of dependencies from the src folder of a workspace?

This will list all packages found between <exec_depend>, <build_depend> and <run_depend> tags from pac

2022-10-13 11:05:27 -0500 received badge  Editor (source)
2022-10-12 17:11:55 -0500 answered a question How can generate a list of dependencies from the src folder of a workspace?

This will list all packages found between <exec_depend>, <build_depend> and <run_depend> tags from pac

2022-03-24 03:34:16 -0500 received badge  Necromancer (source)
2021-12-19 08:38:20 -0500 commented answer The value of ${prefix} in package.xml

Looks like the prefix variable comes from catkin: https://github.com/ros/catkin/commit/6b30f78a230a5d3de79f19dbf230ff45

2021-12-16 10:50:25 -0500 received badge  Famous Question (source)
2021-12-16 10:50:25 -0500 received badge  Notable Question (source)
2021-11-19 13:55:23 -0500 commented answer Win10/WSL: error displaying RVIZ---any ideas on what the issue would be?

It helped to find a fix. I'm using Win10 WSL2 Docker to run rviz, for XServer I use MobaXTerm terminal. In MobaXTerm go

2021-08-08 08:43:51 -0500 commented answer header files not found even though they should be installed

Had problem that no headers were found. Adding include_directories(include ${catkin_INCLUDE_DIRS}) fixed it thanks

2021-05-25 14:24:47 -0500 commented question catkin build fails but catkin_make works | ld: cannot find -lvesc_driver_nodelet

Managed to fix it this really helped http://docs.ros.org/en/indigo/api/catkin/html/howto/format2/building_libraries.html

2021-05-21 12:55:54 -0500 commented question catkin build fails but catkin_make works | ld: cannot find -lvesc_driver_nodelet

Managed to fix it this really helped http://docs.ros.org/en/indigo/api/catkin/html/howto/format2/building_libraries.html

2021-05-21 12:55:54 -0500 received badge  Commentator
2021-05-21 12:47:07 -0500 received badge  Popular Question (source)
2021-05-09 07:08:14 -0500 received badge  Famous Question (source)
2021-05-02 13:21:14 -0500 asked a question catkin build fails but catkin_make works | ld: cannot find -lvesc_driver_nodelet

catkin build fails but catkin_make works | ld: cannot find -lvesc_driver_nodelet Issue on Github I'm trying to migrate

2021-04-28 14:25:21 -0500 commented question Ackermann vehicle navigation

One way would be to to write a node which converts cmd_vel to /vesc/commands/motor/speed for each wheel. You can also pu

2021-04-18 02:12:33 -0500 commented answer “ 404 Not Found [IP: ] ” when try to install any ros kinetic package

sudo apt update fixed it

2021-04-06 21:38:22 -0500 received badge  Notable Question (source)
2021-03-30 05:14:17 -0500 received badge  Popular Question (source)
2021-03-29 07:18:15 -0500 asked a question ROS2 how to launch rviz2 with config file

ROS2 how to launch rviz2 with config file I'm coming from ROS1 background and I'm new with ROS2. I want to launch rviz w

2021-03-22 17:32:32 -0500 commented answer Quaternion transformations in Python

Also remember to import import tf import geometry_msgs And for someone who doesn't know star "*" here *tf_conversions

2021-03-18 09:00:16 -0500 received badge  Teacher (source)
2021-03-18 09:00:16 -0500 received badge  Necromancer (source)
2021-03-02 14:45:48 -0500 received badge  Famous Question (source)
2021-02-26 12:48:19 -0500 answered a question How to play rosbag using launch file ?

For relative path use this just change MY_PACKAGE to your package name. Tested on Noetic: <launch> <arg nam

2021-02-26 12:47:29 -0500 edited answer How to play rosbag using launch file ?

For relative path use this just change MY_PACKAGE to your package name. Tested on Noetic: <launch> <arg nam

2021-02-26 12:44:27 -0500 answered a question How to play rosbag using launch file ?

<launch> <arg name="bag_file_name" value="my_bag2"/> <!-- Rosbag play--> <node pkg="rosbag" type

2021-02-26 12:16:31 -0500 answered a question Navigation Stack path planning

Check out this "ROS Navigation Tuning Guide" it was quite useful: https://arxiv.org/pdf/1706.09068.pdf

2020-11-29 11:07:45 -0500 marked best answer robot_localization navsat transform node does not publish

Hello,

Goal: Write simplest robot_localization program using Android phone sensors (GPS and IMU). To be more exact first I need navsat_transform_node to output something.

Problem: /odometry/filtered, /odometry/gps and gps/filtered topics won't publish any message.

Info:

  • Ubuntu 18.04, ROS Melodic
  • I'm quite new to ROS. Programming isn't problem for me it's just ROS concepts.
  • I don't have odometry sensors for now but it shouldn't be necessary if I understood documentation well, right?
  • Yes I have read robot_localization documentation and yes I read many answers on answers.ros.org and other places and I have spent a lot of time trying to get ir running but with no success. I might be missing some key concept and I would really appreciate the help.

Setup:

  • I have "ROS Sensors Driver" app on Android which connects to the ROS master on computer via wifi. This part working fine master receives GPS and IMU messages
  • Installed ros_localization package via command: sudo apt-get install ros-melodic-robot-localization
  • Launching nav_sat.launch file for navsat_transform_node (which I assume is the first step for localization with GPS)
  • Attached bag file for GPS and IMU data also link if attachment didn't work https://drive.google.com/open?id=1uaA...

nav_sat.launch:

<launch>
    <node pkg="tf2_ros" type="static_transform_publisher" name="static_tf1" args="0 0 0 0 0 0 base_link imu" />
    <node pkg="tf2_ros" type="static_transform_publisher" name="static_tf2" args="0 0 0 0 0 0 base_link gps" />

  <node pkg="robot_localization" type="navsat_transform_node" name="navsat_transform_node" output="screen">

    <param name="publish_filtered_gps" value="true"/>
    <remap from="/imu/data" to="/android/imu" />
    <remap from="/gps/fix" to="/android/fix" />
    <remap from="/odometry/filtered" to="/odometry/filtered" />
  </node>

  <node pkg="rviz" type="rviz" name="rviz"/>
</launch>

Output: Only output I get is in the terminal window. Also the coordinates are accurate:

[ INFO] [1568201308.195924722]: Datum (latitude, longitude, altitude) is (XX.902596, XX.960813, XX.968323)
[ INFO] [1568201308.196126403]: Datum UTM coordinate is (XXXXXX.819897, XXXXXXX.950294)

As said /odometry/filtered, /odometry/gps and gps/filtered topics won't publish any message.

Messages: /android/imu:

header:
  seq: 581523
  stamp:
    secs: 1568792943
    nsecs:  82000000
  frame_id: "/imu"
orientation:
  x: -0.709161221981
  y: 0.031271263957
  z: -0.681847274303
  w: 0.176625996828
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
  x: 0.757553100586
  y: -0.367462158203
  z: -0.454147338867
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
  x: 8.11840820312
  y: -7.03816223145
  z: -2.65315246582
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

/android/fix:

header:
  seq: 580317
  stamp:
    secs: 1568108152
    nsecs: 242000000
  frame_id: "/gps"
status:
  status: 0
  service: 1
latitude: 54.9023711
longitude: 23.96061015
altitude: 108.23223877
position_covariance: [1328.4568397011753, 0.0, 0.0, 0.0, 1328.4568397011753, 0.0, 0.0, 0.0, 1328.4568397011753 ...
(more)
2020-09-29 03:16:58 -0500 received badge  Notable Question (source)
2020-09-21 04:43:29 -0500 answered a question Can you use constants in action files?

Yes you can: # MyAction.action # Goal constants uint8 AAAAAAAAAAAAAAAAAAAAAAAAAA = 42 --- # Result constants uint8 BBBB

2020-09-05 09:34:02 -0500 answered a question How to get smach_viewer to work?

It's not direct answer to your question but maybe someone could find it useful. First make sure if you are using sim_tim

2020-08-25 11:22:04 -0500 answered a question how do I to make /wgs84 frame available?

Ended up with this launch file to run Mapviz and to have transform to /wgs84 <launch> <!--WGS84 transform

2020-08-21 08:13:38 -0500 received badge  Popular Question (source)
2020-08-20 12:13:36 -0500 received badge  Student (source)
2020-08-20 08:17:46 -0500 commented question An error occurred when using the libgazebo_ros_diff_drive plug-in

Could it be because misspelled $(find robo_description)

2020-08-20 07:57:52 -0500 commented question Map transformation from Pixel to world coordinates

Shouldn't you use something like this to convert from pixel to world in meters (not sure if it has to be + or - origin_x