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

Javier Fernandez Fernandez's profile - activity

2022-12-07 04:12:18 -0500 received badge  Famous Question (source)
2017-11-16 11:11:54 -0500 received badge  Student (source)
2017-11-16 10:36:47 -0500 received badge  Notable Question (source)
2017-06-07 11:21:35 -0500 received badge  Popular Question (source)
2017-03-02 13:05:28 -0500 asked a question Change state in smach_ros with a topic

Hi everyone,

I am working with smach_ros and I have done a .cpp that reads the keyboard and allows me to change the state. However, the function monitorState only allows me to return a bool value (True or False) and I need more options since there are some states that have five possible transitions.

Here I give an example of what I have and what I want.

def monitor_prueba(ud, msg): if Bool.data == 1: return False elif Bool.data == 2: return True

def monitor_prueba(ud, msg): if Bool.data == 1: return OTHERVALUE elif Bool.data == 2: return OTHERVALUE

Thank you.

2017-03-02 13:05:27 -0500 asked a question Define states in smach_ros with topics

Hi everyone,

I am working with smach_ros and I have done a .cpp that reads the keyboard and allows me to change the state. However, the function monitorState only allows me to return a bool value (True or False) and I need more options since there are some states that have five possible transitions.

Here I give an example of what I have and what I want.

def monitor_prueba(ud, msg): if Bool.data == 1: return False elif Bool.data == 2: return True

def monitor_prueba(ud, msg): if Bool.data == 1: return OTHERVALUE elif Bool.data == 2: return OTHERVALUE

Thank you.