Skip to content

Launch file terminates node with std::logic_error #348

Closed

Description

@Richard-Haes-Ellis

Issue template

  • Hardware description: olimex-stm32-e407
  • RTOS: FreeRTOS
  • Installation type: micro_ros_setup
  • Version or commit hash: foxy

Steps to reproduce the issue

ros2 launch micro_ros_agent micro_ros_agent_launch.py

Expected behavior

Screenshot from 2021-06-29 12-14-44

Actual behavior


[INFO] [launch]: All log files can be found below /home/richard/.ros/log/2021-06-29-12-14-18-274708-richard-GL65-9SEK-67024
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [micro_ros_agent-1]: process started with pid [67026]
[micro_ros_agent-1] terminate called after throwing an instance of 'std::logic_error'
[micro_ros_agent-1]   what():  basic_string::_M_construct null not valid
[ERROR] [micro_ros_agent-1]: process has died [pid 67026, exit code -6, cmd '/home/richard/dev_ws/install/micro_ros_agent/lib/micro_ros_agent/micro_ros_agent udp4 --port 8888 -v6 --ros-args -r __node:=micro_ros_agent'].

Additional information

launch.log file:

1624961495.2396970 [INFO] [launch]: All log files can be found below /home/richard/.ros/log/2021-06-29-12-11-35-235700-richard-GL65-9SEK-66678
1624961495.2398911 [INFO] [launch]: Default logging verbosity is set to INFO
1624961495.3029954 [INFO] [micro_ros_agent-1]: process started with pid [66680]
1624961495.3071363 [micro_ros_agent-1] terminate called after throwing an instance of 'std::logic_error'
1624961495.3072314 [micro_ros_agent-1]   what():  basic_string::_M_construct null not valid
1624961495.4339836 [ERROR] [micro_ros_agent-1]: process has died [pid 66680, exit code -6, cmd '/home/richard/dev_ws/install/micro_ros_agent/lib/micro_ros_agent/micro_ros_agent udp4 --port 8888 -v6 --ros-args -r __node:=micro_ros_agent'].

Activity

  1. pablogs9 commented on Jun 29, 2021

    @pablogs9
    Member

    Use ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888 -v6

    Do you have any special interest in using a launch file?

  2. Richard-Haes-Ellis commented on Jun 29, 2021

    @Richard-Haes-Ellis
    Author

    Yes, it would be nice to be able to launch the node in a bigger launch file with other nodes that communicate with the micro-Ros node.

    Another issue I've been having is that the olimex board dosesent seem to connect if I power the board first and then run the agent, Any way to reset the board when agent is launched?

  3. pablogs9 commented on Jul 5, 2021

    @pablogs9
    Member
  4. Richard-Haes-Ellis commented on Jul 5, 2021

    @Richard-Haes-Ellis
    Author

    Excellent! Thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions