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

muttidrhummer's profile - activity

2023-05-17 05:42:47 -0500 commented question replace string in ros2 launch command xacro

I will take a look at the OpaqueFunction, but the problem I'm having is that I need to put <fdir1 ignition:expresse

2023-05-17 04:10:31 -0500 asked a question replace string in ros2 launch command xacro

replace string in ros2 launch command xacro Hi all, i need to replace a string in an urdf after the xacro command is exe

2022-11-04 12:15:51 -0500 marked best answer package not fount when sourcing workspace

Hi all, I'm on Ros2 rolling, Ubuntu 22.04.

I'm building a workspace consisting of 2 packages, one called omron_ros2_msgs and the other one omron_ros2_agv. I start with a clean workspace, then source the /opt setup.bash file, build the workspace with colcon build, and source the install/setup.bash file of the workspace. Unfortunately, after building and sourcing the workspace, ros2 cli cannot see either of the two workspaces. If i source the specific local setup file of the omron_ros2_agv package ("install/omron_ros2_agv/share/omron_ros2_agv/local_setup.bash"), then it works, and i can see the package in the ros2 pkg list. Am i doing something wrong? The cmake and package files of the omron_ros2_agv package are the following :

cmake_minimum_required(VERSION 3.8)
project(omron_ros2_agv)

add_compile_options(-std=c++17)
add_compile_options(-Wall)
add_compile_options(-Wextra)
add_compile_options(-Wno-unused-parameter)

set(CMAKE_BUILD_TYPE Release)

find_package(ament_cmake REQUIRED)
find_package(angles REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(omron_ros2_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(nav_msgs REQUIRED)

find_package(Boost REQUIRED COMPONENTS thread)


add_executable(omron_ros2_agv_node src/ros2_omron_agv_node.cpp)

target_include_directories(omron_ros2_agv_node PUBLIC
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
  $<INSTALL_INTERFACE:include>)

target_compile_features(omron_ros2_agv_node PUBLIC c_std_99 cxx_std_17)  # Require C99 and C++17


target_link_libraries(omron_ros2_agv_node
  Aria
  ArNetworking
)

ament_target_dependencies(omron_ros2_agv_node 
                            ${${PROJECT_NAME}_EXPORTED_TARGETS}
                            rclcpp 
                            tf2_ros 
                            sensor_msgs 
                            omron_ros2_msgs
                            geometry_msgs 
                            angles 
                            nav_msgs
                            tf2_geometry_msgs)





install(
  TARGETS omron_ros2_agv_node
  DESTINATION lib/${PROJECT_NAME}
)

ament_export_dependencies(
  rclcpp
  rclcpp_lifecycle
  ${${PROJECT_NAME}_EXPORTED_TARGETS}
)

ament_package()

package.xml :

<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
  <name>omron_ros2_agv</name>
  <version>0.1.0</version>
  <description>The omron_driver package</description>

  <maintainer email="stiima@todo.todo">stiima</maintainer>

  <license>BSD-3-Clause</license>
  <author>Stiima</author>


  <buildtool_depend>ament_cmake</buildtool_depend>

  <build_depend>omron_ros2_msgs</build_depend>

  <depend>angles</depend>
  <depend>actionlib</depend>
  <depend>actionlib_msgs</depend>
  <depend>move_base_msgs</depend>
  <depend>nav_msgs</depend>
  <depend>roscpp</depend>
  <depend>sensor_msgs</depend>
  <depend>std_msgs</depend>
  <depend>std_srvs</depend>
  <depend>tf2_ros</depend>

  <!-- The export tag contains other, unspecified, tags -->
  <export>
    <!-- Other tools can request additional information be placed here -->

  </export>

</package>

Thanks

2022-11-04 05:06:33 -0500 answered a question package not fount when sourcing workspace

ok, i solved. I forgot to put the <build_type>ament_cmake</build_type> line in <export> tag of t

2022-11-04 05:06:33 -0500 received badge  Rapid Responder (source)
2022-11-04 04:53:07 -0500 asked a question package not fount when sourcing workspace

package not fount when sourcing workspace Hi all, I'm on Ros2 rolling, Ubuntu 22.04. I'm building a workspace consistin

2022-08-24 00:29:45 -0500 received badge  Famous Question (source)
2022-07-11 07:45:44 -0500 received badge  Notable Question (source)
2022-06-01 01:52:54 -0500 received badge  Popular Question (source)
2022-05-31 11:30:24 -0500 commented answer ROS2 get publisher node name from subscriber

Thanks for the quick reply, i will try it soon. Thanks

2022-05-31 09:58:37 -0500 asked a question ROS2 get publisher node name from subscriber

ROS2 get publisher node name from subscriber Hi all, is there a way in ros2 to get the name of the node who is publishin

2021-09-15 14:20:56 -0500 received badge  Taxonomist
2021-06-26 09:52:51 -0500 received badge  Student (source)
2020-10-08 16:36:55 -0500 received badge  Famous Question (source)
2020-06-18 18:04:55 -0500 received badge  Notable Question (source)
2020-03-23 13:25:06 -0500 received badge  Famous Question (source)
2020-02-17 14:45:40 -0500 received badge  Notable Question (source)
2020-02-17 00:33:47 -0500 received badge  Famous Question (source)
2019-10-25 09:32:00 -0500 received badge  Popular Question (source)
2019-10-11 02:58:41 -0500 commented answer Cancel rospy action with Ctrl+C

OK, it works. I forgot that python adds a name in front of double underscored methods. Thanks

2019-10-11 02:54:52 -0500 commented answer Cancel rospy action with Ctrl+C

Thanks, i already tried this but it does't work actually. If i call class.__move_base_action.cancel_all_goals(), python

2019-10-10 12:24:18 -0500 received badge  Famous Question (source)
2019-10-10 12:22:37 -0500 asked a question Cancel rospy action with Ctrl+C

Cancel rospy action with Ctrl+C Hi to everyone, i'm using a class in which some methods call actions as SimpleActionCli

2019-05-20 02:07:46 -0500 marked best answer Pass a package name to a lanch file and retrieve path

hello, i'm trying to pass a package name to launch file in order to find the path with $(find package_name_arg). This fails and i don't know how to fix it. Does anyone knows? Thanks

2019-05-20 02:06:55 -0500 received badge  Popular Question (source)
2019-03-26 04:24:12 -0500 received badge  Notable Question (source)
2019-03-25 09:37:31 -0500 received badge  Popular Question (source)
2019-03-25 08:34:21 -0500 commented question ROS topic and services routing

everything is on a single local machine

2019-03-25 08:24:53 -0500 asked a question ROS topic and services routing

ROS topic and services routing Hello to everyone, is it possible to route all the topics and services to a specific netw

2019-01-18 01:51:04 -0500 commented answer Launch node with root permissions

i noticed that when i close the launchfile in which i ran some nodes with sudo , the sudo nodes won't close at at all, a

2018-07-13 01:26:00 -0500 received badge  Popular Question (source)
2018-07-12 02:46:57 -0500 received badge  Enthusiast
2018-07-11 09:54:07 -0500 asked a question input xacro name in xacro file

input xacro name in xacro file hi, i want to implement this : <?xml version="1.0" ?> <robot name="robot1" xm

2017-10-21 08:00:11 -0500 marked best answer Retrieve robot name

Is there a way to retrieve robot name from the urdf in c++? Or any other way to get it? Thanks

2017-10-18 04:07:50 -0500 commented answer Retrieve robot name

Thanks, works like a charm.

2017-10-18 04:07:11 -0500 received badge  Supporter (source)
2017-10-17 04:32:51 -0500 received badge  Notable Question (source)
2017-10-16 06:23:15 -0500 received badge  Popular Question (source)
2017-10-03 11:34:58 -0500 asked a question Retrieve robot name

Retrieve robot name Is there a way to retrieve robot name from the urdf in c++? Or any other way to get it? Thanks

2017-10-03 04:44:26 -0500 asked a question namespace renaming through the c++/python API

namespace renaming through the c++/python API Is there a way to rename a namespace through the c++/python API? Or to re

2017-09-29 14:32:02 -0500 received badge  Self-Learner (source)
2017-09-29 14:32:02 -0500 received badge  Teacher (source)
2017-09-29 05:05:28 -0500 answered a question Pass a package name to a lanch file and retrieve path

<arg name="package" /> <include file="$(eval find(package) + '/launch/demo.launch' )" /> SOLVED LIKE T

2017-09-29 05:05:27 -0500 asked a question Pass a package name to a lanch file and retrieve path

Pass a package name to a lanch file and retrieve path hello, i'm trying to pass a package name to launch file in order t

2017-09-29 05:05:27 -0500 asked a question Pass package name as argument in launch file

Pass package name as argument in launch file Hello, i want to pass a package name to my .launch and then use this with $