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

bergercookie's profile - activity

2023-03-11 08:30:02 -0500 received badge  Great Answer (source)
2022-12-15 10:31:41 -0500 received badge  Nice Question (source)
2022-09-01 23:44:58 -0500 received badge  Famous Question (source)
2022-05-23 03:40:14 -0500 received badge  Popular Question (source)
2022-05-23 03:40:14 -0500 received badge  Notable Question (source)
2021-12-10 04:14:45 -0500 commented question Have problem importing XXXX.srv module in pyton file?even though i response and request .h are already created.

Please provide more info about your setup. What are the contents of the CMakeLists.txt file? What's the directory struct

2021-12-10 04:10:18 -0500 commented question Does ROS have anything similar to a "global variable"?

I don't think there's a global variable concept in ROS1 for this purpose. Could you perhaps limit the publishing rate of

2021-12-09 07:43:21 -0500 edited question ros2 launch: Forward keystrokes to child node

ros2 launch: Forward keystrokes to child node I want to create a launchfile, which launches a keyboard teleop node. When

2021-12-09 07:42:42 -0500 asked a question ros2 launch: Forward keystrokes to child node

ros2 launch: Forward keystrokes to child node I want to create a launchfile, which launches a keyboard teleop node. When

2021-12-09 04:54:34 -0500 commented answer "The library is neither a target nor built/installed properly"

This is about the package's CMakeLists.txt

2021-11-15 02:32:18 -0500 received badge  Famous Question (source)
2021-11-09 03:18:37 -0500 received badge  Famous Question (source)
2021-11-09 03:18:37 -0500 received badge  Notable Question (source)
2021-11-06 03:27:39 -0500 received badge  Popular Question (source)
2021-11-05 07:11:43 -0500 received badge  Nice Answer (source)
2021-11-04 09:56:37 -0500 received badge  Famous Question (source)
2021-11-03 10:30:04 -0500 commented question ros-melodic-ros-controllers-cartesian : Depends: ros-melodic-twist-controller but it is not installed

What's your OS version? What's the output of uname -a? If you have Ubuntu20.04 you shouldn't be installing melodic since

2021-11-03 10:29:27 -0500 commented question ros-melodic-ros-controllers-cartesian : Depends: ros-melodic-twist-controller but it is not installed

What's your OS version? What's the output of uname -a? If you have Ubuntu20.04 you shouldn't be installing melodic since

2021-11-02 06:19:16 -0500 asked a question ROS2 Launch - Detect error on process startup

ROS2 Launch - Detect error on process startup I understand that in ROS2 you can use on_exit=actions.Shutdown() to detect

2021-11-01 17:21:35 -0500 received badge  Necromancer (source)
2021-11-01 05:41:22 -0500 answered a question ROS2: Override param value when running the node

It's now possible to do that with, at least, the ROS2 Foxy version. --ros-args -p scenario_id:="check_scenario" I also

2021-08-04 05:21:33 -0500 received badge  Famous Question (source)
2021-08-01 02:44:27 -0500 received badge  Notable Question (source)
2021-07-30 06:39:25 -0500 marked best answer No transition matching 3 found for current state

I'm looking at the ros2 lifecycles demo here: https://github.com/ros2/demos/blob/fo...

According to the Lifecycles page of ROS2 if an exception occurs in any of the primary states then the on_error method should be called, which in turn, on SUCCESS reverts to the Unconfigured state, and on FAILUREit goes to Finalized and eventually the node gets shutdown.

For the sake of the example I'll throw an exception from within one of the transition callbacks, e.g., on_activate.

on_activate(const rclcpp_lifecycle::State &)
{
  throw std::runtime_error("some_error");
  ...

With this change in place I see the following transitions happening (see roslaunch output of command ros2 launch lifecycle lifecycle_demo.launch.py)

[lifecycle_listener-2] [INFO] [1627469418.643524277] [lc_listener]: notify callback: Transition from state activating to errorprocessing
[lifecycle_listener-2] [INFO] [1627469418.643625385] [lc_listener]: notify callback: Transition from state errorprocessing to unconfigured
[lifecycle_service_client-3] [WARN] [1627469418.643600791] [lc_client]: Failed to trigger transition 3

I understand why it transitions to errorprocessing and then to unconfigured. However it then tries to transition to "3" which is the TRANSITION_ACTIVATE transition and it fails to do so since that is not a valid transition (Unconfigured -> Active)

I don't understand though, why is it trying transition to activate since I or any other node didn't explicitly trigger this transition? What can I do to solve this?

Here's also the full list of transitions the node goes through, in case it's helpful

ros2 topic echo /lc_talker/transition_event
timestamp: 0
transition:
  id: 0
  label: ''
start_state:
  id: 1
  label: unconfigured
goal_state:
  id: 10
  label: configuring
---
timestamp: 0
transition:
  id: 0
  label: ''
start_state:
  id: 10
  label: configuring
goal_state:
  id: 2
  label: inactive
---
timestamp: 0
transition:
  id: 0
  label: ''
start_state:
  id: 2
  label: inactive
goal_state:
  id: 13
  label: activating
---
timestamp: 0
transition:
  id: 0
  label: ''
start_state:
  id: 13
  label: activating
goal_state:
  id: 15
  label: errorprocessing
---
timestamp: 0
transition:
  id: 0
  label: ''
start_state:
  id: 15
  label: errorprocessing
goal_state:
  id: 1
  label: unconfigured
---

System Information

I'm using:

  • Ubuntu 20.04
  • Latest version of the PPA packages of ROS Foxy.

Any pointers?

2021-07-29 02:09:08 -0500 received badge  Popular Question (source)
2021-07-29 01:08:13 -0500 commented question No transition matching 3 found for current state

Ah, yoiu're right! Nice catch! Do you want to form it into an answer? I'd be happy to approve it

2021-07-28 08:31:45 -0500 edited question No transition matching 3 found for current state

No transition matching 3 found for current state I'm looking at the ros2 lifecycles demo here: https://github.com/ros2/d

2021-07-28 08:29:00 -0500 asked a question No transition matching 3 found for current state

No transition matching 3 found for current state I'm looking at the ros2 lifecycles demo here: https://github.com/ros2/d

2021-04-14 04:31:55 -0500 marked best answer Current status of the navigation stack tools in ROS2. Where is move_base?

I’m interested in using the ROS 2 variant of the navigation stack for a simple navigation task, namely, follow a given nav_msgs::Path without caring about obstacle avoidance or anything else.

The repository I'm looking at is: https://github.com/ros-planning/navig...

Are the tools needed for this task already ported to ROS 2? After going through bits of the ROS 1 documentation, it seems that move_base would be the component to use, but AFAIK, that is not ported to ROS 2. Anything I’m missing? What would you suggest for the application at hand?

2021-01-21 12:19:27 -0500 received badge  Great Answer (source)
2020-12-22 10:29:04 -0500 received badge  Good Answer (source)
2020-12-19 08:07:52 -0500 received badge  Famous Question (source)
2020-11-12 14:35:28 -0500 received badge  Student (source)
2020-11-09 15:43:31 -0500 received badge  Notable Question (source)
2020-11-06 07:23:36 -0500 received badge  Popular Question (source)
2020-11-05 09:58:24 -0500 asked a question Generating roslaunch documentation

Generating roslaunch documentation Since indigo, roslaunch args have a doc attribute for adding documentation to each on

2020-09-14 09:27:13 -0500 commented answer navigation stack with teb_local_planner planning path through wall

I don't really understand what this parameter represents or how does the algorithm use it? Any more insight? Why would t

2020-09-11 03:41:43 -0500 received badge  Commentator
2020-09-11 03:41:43 -0500 commented answer Movebase: robot move backwards when it detects an obstacle

What's the parameter/setting that specifies how far backwards though?

2019-12-26 13:16:28 -0500 marked best answer ros2 access current LaunchConfiguration

I'm in the middle of migrating a ROS1 app of mine to ROS2 and I'm currently trying to convert a .launch file to a python script.

I want to be able to pass a command line argument to the script and then get its value in the generate_launch_description call.

This is how I currently pass extra arguments to the LaunchDescription:

run_rqt_arg = DeclareLaunchArgument(name="run_rqt",
                                    default_value="True",
                                    description="Launch RQT?")
run_rviz_arg = DeclareLaunchArgument(name="run_rviz",
                                     default_value="True",
                                     description="Launch RVIZ?")

if run_rqt:
    rqt = Node(...)
    l.append(rqt)
if run_rviz:
    rviz = Node(...)
    l.append(rviz)

return LaunchDescription(l, run_rqt, run_rviz)

I'm running the launch script via ros2 launch ...

Is the passing of extra arguments handled correctly? How do I fetch the values of these cli args at runtime?

2019-12-08 14:12:24 -0500 received badge  Popular Question (source)
2019-12-08 14:12:24 -0500 received badge  Notable Question (source)
2019-12-05 06:42:04 -0500 received badge  Good Answer (source)