# Setting Boxer as the ROS Master to Run Stretch

**URL:** <https://forum.hello-robot.com/t/setting-boxer-as-the-ros-master-to-run-stretch/847>\
**Category:** Ask\
**Created:** [November 15, 2023, 8:15pm UTC](https://forum.hello-robot.com/t/setting-boxer-as-the-ros-master-to-run-stretch/847 "2023-11-15T20:15:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JannaLam](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/jannalam/32/539_2.png) [@JannaLam](https://forum.hello-robot.com/u/JannaLam)\
**Post date:** [November 15, 2023, 8:15pm UTC](https://forum.hello-robot.com/t/setting-boxer-as-the-ros-master-to-run-stretch/847/1 "2023-11-15T20:15:54Z")

</div>

Not sure whether this is the right place to ask. We plan to set Boxer as the master and control two stretches at the same time. Unfortunately, when we ran our execution file, the process got stuck at the line ` self.trajectory_client = actionlib.SimpleActionClient("/"+self.model+"/"+self.model + '/stretch_controller/follow_joint_trajectory', FollowJointTrajectoryAction)` (there is some adaptation to our code, but it can work when we set our desktop as the master). What could be the possible reason why it always times out?

---

<div class="post-metadata">

**Author:** ![Mohamed\_Fazil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/mohamed_fazil/32/261_2.png) [@Mohamed\_Fazil](https://forum.hello-robot.com/u/Mohamed_Fazil)\
**Post date:** [November 20, 2023, 10:41pm UTC](https://forum.hello-robot.com/t/setting-boxer-as-the-ros-master-to-run-stretch/847/2 "2023-11-20T22:41:32Z")

</div>

Hi @JannaLam , I assume your describing about running the ROS master from the mobile robot [Boxer](https://clearpathrobotics.com/boxer/) and control two stretches from it using the modified Stretch ROS originating from this ongoing [PR #116 (Multi-Robot Setup)](https://github.com/hello-robot/stretch_ros/pull/116/files).

I currently don’t have a ROS Noetic setup to tryout and reproduce the timeout issue you are describing. I would start-off by inspecting the Joint Trajectory server’s name space that is running on the two robots and verify if they are visible to the ROS Master computer because the timeout or the block you mention happens when the [SimpleActionClient node is trying to establish publishers and subscriptions (source code)](https://github.com/ros/actionlib/blob/noetic-devel/actionlib/src/actionlib/action_client.py#L506:L535) to the JointTrajectoryServer in of the robot specific Name space you have set.

---

<div class="post-metadata">

**Author:** ![JannaLam](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/jannalam/32/539_2.png) [@JannaLam](https://forum.hello-robot.com/u/JannaLam)\
**Post date:** [November 21, 2023, 6:21am UTC](https://forum.hello-robot.com/t/setting-boxer-as-the-ros-master-to-run-stretch/847/3 "2023-11-21T06:21:13Z")

</div>

Hi, thank you! Yes, we are trying to implement that PR on Boxer right now. It worked for us when we set the master to local desktop but not Boxer. By any chance you may have any suggestions on how we should debug and check the interactions among servers if there is no GUI for us to visualize the rqt\_graph?

---

<div class="post-metadata">

**Author:** ![Mohamed\_Fazil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/mohamed_fazil/32/261_2.png) [@Mohamed\_Fazil](https://forum.hello-robot.com/u/Mohamed_Fazil)\
**Post date:** [November 27, 2023, 6:18pm UTC](https://forum.hello-robot.com/t/setting-boxer-as-the-ros-master-to-run-stretch/847/4 "2023-11-27T18:18:47Z")

</div>

Hi @JannaLam , I believe one best way to do it is via SSH’ing into the Boxer robot’s computer and you could try looking up the topics that are visible to the Boxer using the command `/rostopic --list` while both the robot’s stretch driver nodes are running given both has the [`ROS_MASTER_URI`](http://wiki.ros.org/ROS/EnvironmentVariables#ROS_MASTER_URI) environment value set to the Boxer robot’s IP address.

Further you could also use variety of ROS command line tools to inspect the data traffic on running ros nodes. (E.g. [rosnode](http://wiki.ros.org/rosnode) to inspect a running node , [rostopic](http://wiki.ros.org/rostopic) to inspect, echo or publish data to a topic)  
You can read through the official ROS Wiki documentation for the in-depth usage of the above tools.
