Ask Your Question

hect1995's profile - activity

2019-10-08 07:07:58 -0500 received badge  Famous Question (source)
2019-09-25 02:05:19 -0500 received badge  Popular Question (source)
2019-09-15 01:00:52 -0500 received badge  Popular Question (source)
2019-09-07 00:50:20 -0500 received badge  Popular Question (source)
2019-09-06 06:00:21 -0500 edited question Check output node using launch_test

Check output node using launch_test I have a launch file for executing a certain test called sm_process_test.launch.py.

2019-09-06 05:16:30 -0500 edited question Check output node using launch_test

Check output node using launch_test I have a launch file for executing a certain test called sm_process_test.launch.py.

2019-09-03 03:17:13 -0500 edited question Check output node using launch_test

Check output node using launch_test I have a launch file for executing a certain test called sm_process_test.launch.py.

2019-09-02 09:53:59 -0500 asked a question Detect output from node using launch_test

Detect output from node using launch_test I have a launch file for executing a certain test called sm_process_test.launc

2019-09-02 09:51:55 -0500 asked a question Check output node using launch_test

Check output node using launch_test I have a launch file for executing a certain test called sm_process_test.launch.py.

2019-08-22 07:55:39 -0500 received badge  Popular Question (source)
2019-08-21 07:56:44 -0500 edited question No INFO messages when launching nodes

No INFO messages when launching nodes I have recently update to ROS2 dashing and I have the issue that when I run my nod

2019-08-21 07:54:20 -0500 asked a question No INFO messages when launching nodes

No INFO messages when launching nodes I have recently update to ROS2 dashing and I have the issue that when I run my nod

2019-08-19 03:52:57 -0500 received badge  Notable Question (source)
2019-08-01 06:36:06 -0500 received badge  Notable Question (source)
2019-07-31 09:27:28 -0500 received badge  Popular Question (source)
2019-07-31 04:03:29 -0500 asked a question Close a node from inside Node class

Close a node from inside Node class I want to shutdown a node inside the own node class in case a certain condition is f

2019-07-30 01:49:50 -0500 received badge  Enthusiast
2019-07-29 12:14:02 -0500 received badge  Taxonomist
2019-07-29 09:07:40 -0500 received badge  Notable Question (source)
2019-07-29 06:53:24 -0500 edited question launch_test command not found

launch_test command not found I want to launch several nodes and check that the output of one specific node is something

2019-07-29 06:33:18 -0500 asked a question launch_test command not found

launch_test command not found I want to launch several nodes and check that the output of one specific node is something

2019-07-29 06:03:26 -0500 edited question Test a node that subscribes and publishes to other nodes

Test a node that subscribes and publishes to other nodes Hi, I have to test that a truck goes over a set of points that

2019-07-29 03:57:02 -0500 commented answer How to achieve launch service or topic in ROS2 TEST ?

I cannot find the source you are providing to look for the migration. Can you share the link? I am trying to put a test

2019-07-29 03:43:39 -0500 edited question Test a node that subscribes and publishes to other nodes

Test a node that subscribes and publishes to other nodes Hi, I have to test that a truck goes over a set of points that

2019-07-29 01:47:13 -0500 received badge  Famous Question (source)
2019-07-28 04:11:20 -0500 received badge  Notable Question (source)
2019-07-27 12:20:56 -0500 received badge  Popular Question (source)
2019-07-27 10:03:13 -0500 edited question Test a node that subscribes and publishes to other nodes

Test a node that subscribes and publishes to other nodes Hi, I have to test that a truck goes over a set of points that

2019-07-27 09:59:21 -0500 edited question Test a node that subscribes and publishes to other nodes

Test a node that subscribes and publishes to other nodes Hi, I have to test that a truck goes over a set of points that

2019-07-26 08:43:37 -0500 edited question Test a node that subscribes and publishes to other nodes

Test a node that subscribes and publishes to other nodes Hi, I have to test that a truck goes over a set of points that

2019-07-26 08:37:21 -0500 asked a question Test a node that subscribes and publishes to other nodes

Test a node that subscribes and publishes to other nodes Hi, I have to test that a truck goes over a set of points that

2019-07-26 03:14:00 -0500 commented answer Import python script to different ROS2 package

thanks for the help

2019-07-26 03:12:06 -0500 marked best answer Import python script to different ROS2 package

I have created a package called custom_msg which has the following structure:

src
    custom_msg
        msg
            CustomMsg.msg
        constants
            msg_constants.py
        CMakeLists.txt
        package.xml

Where CMakeLists.txt:

cmake_minimum_required(VERSION 3.5)

project(custom_msg)

# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 14)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)

rosidl_generate_interfaces(custom_msg
  "msg/CustomMsg.msg"
  DEPENDENCIES builtin_interfaces
)

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>custom_msg</name>
  <version>0.7.6</version>
  <description>Custom messages for real-time communication between nodes of the truck.</description>

  <maintainer email="hector.esteban@man.de">Hector Esteban</maintainer>

  <license>Apache License 2.0</license>

  <author>Hector Esteban</author>

  <buildtool_depend>ament_cmake</buildtool_depend>
  <buildtool_depend>rosidl_default_generators</buildtool_depend>

  <depend>rosidl_default_generators</depend>
  <depend>common_interfaces</depend>

  <exec_depend>rosidl_default_runtime</exec_depend>

  <test_depend>ament_lint_auto</test_depend>
  <test_depend>ament_lint_common</test_depend>

  <member_of_group>rosidl_interface_packages</member_of_group>

  <export>
    <build_type>ament_cmake</build_type>
  </export>
</package>

And msg_constants.py:

#! /usr/bin/env python
OK = 0
OBJECTIVE_NOT_REACHED = 1
PLANNING_EMPTY = 2

After doing:

colcon build --symlink-install
source install/local_setup.bash

When I import from another package msg_constants.py:

from custom_msg.constants import msg_constants as msg_type
from custom_msg.msg import CustomMsg

I can import CustomMsg but not msg_constants

[planning_prob_node-2]     from custom_msg.constants import msg_constants as msg_type
[planning_prob_node-2] ModuleNotFoundError: No module named 'custom_msg.constants'
2019-07-26 03:12:05 -0500 received badge  Supporter (source)
2019-07-26 03:12:05 -0500 received badge  Scholar (source)
2019-07-26 01:45:29 -0500 received badge  Notable Question (source)
2019-07-25 14:11:03 -0500 commented answer Import python script to different ROS2 package

But the problem is that I have 2 variables in the custom message: int8 title float32[4] coordinates And what I want i

2019-07-25 14:07:21 -0500 received badge  Popular Question (source)
2019-07-25 10:01:03 -0500 asked a question Import python script to different ROS2 package

Import python script to different ROS2 package I have created a package called custom_msg which has the following struct

2019-07-25 09:09:11 -0500 received badge  Popular Question (source)
2019-07-25 03:10:17 -0500 edited question Cannot build custom action ROS2

Cannot build custom action ROS2 I am following this answer https://answers.ros.org/question/323429/how-to-create-custom-

2019-07-25 03:09:22 -0500 commented question Cannot build custom action ROS2

I am on Ubuntu 18.04 and I installed thorough Anaconda Python 3.6.2. After reinstalling now I have another issue: --- s

2019-07-25 02:47:49 -0500 received badge  Notable Question (source)
2019-07-25 02:33:08 -0500 received badge  Popular Question (source)
2019-07-25 02:12:39 -0500 asked a question Cannot run ROS2 node in Pycharm

Cannot run ROS2 node in Pycharm Hi, I am trying to run any ROS2 node in Pycharm and I always get the same error: /home/

2019-07-25 02:05:25 -0500 answered a question Cannot build custom action ROS2

I found the solution, it was because I was not sourcing the ROS installation package, so doing something like source /op

2019-07-25 02:05:25 -0500 received badge  Rapid Responder (source)