Skip to content

Commit

Permalink
removed unnecessary interactive marker
Browse files Browse the repository at this point in the history
  • Loading branch information
dniewinski committed Jun 1, 2020
1 parent bca8d70 commit 81e2fd1
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 175 deletions.
9 changes: 9 additions & 0 deletions spot_driver/config/planar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
linear_scale:
x: 1
y: 1
max_positive_linear_velocity:
x: 1
y: 1
max_negative_linear_velocity:
x: -1
y: -1
8 changes: 8 additions & 0 deletions spot_driver/launch/control.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

<launch>
<node pkg="interactive_marker_twist_server" type="marker_server" name="twist_marker_server" >
<rosparam command="load" file="$(find spot_driver)/config/planar.yaml" />
<param name="link_name" value="body" />
<param name="robot_name" value="spot" />
</node>
</launch>
1 change: 1 addition & 0 deletions spot_driver/launch/driver.launch
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<arg name="hostname" default="192.168.131.3" />

<include file="$(find spot_description)/launch/description.launch" />
<include file="$(find spot_driver)/launch/control.launch" />

<node pkg="spot_driver" type="spot_ros.py" name="spot_ros" ns="spot">
<rosparam file="$(find spot_driver)/config/spot_ros.yaml" command="load" />
Expand Down
2 changes: 1 addition & 1 deletion spot_driver/scripts/spot_ros.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def handle_safe_power_off(self, req):
resp = self.spot_wrapper.safe_power_off()
return TriggerResponse(resp[0], resp[1])

def handle_safe_power_hard(self, req):
def handle_estop_hard(self, req):
"""ROS service handler to hard-eStop the robot. The robot will immediately cut power to the motors"""
resp = self.spot_wrapper.assertEStop(True)
return TriggerResponse(resp[0], resp[1])
Expand Down
3 changes: 1 addition & 2 deletions spot_driver/scripts/spot_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ def updateTasks(self):
def resetEStop(self):
"""Get keepalive for eStop"""
self._estop_endpoint.force_simple_setup() # Set this endpoint as the robot's sole estop.
if not self._estop_keepalive:
self._estop_keepalive = EstopKeepAlive(self._estop_endpoint)
self._estop_keepalive = EstopKeepAlive(self._estop_endpoint)

def assertEStop(self, severe=True):
"""Forces the robot into eStop state.
Expand Down
10 changes: 0 additions & 10 deletions spot_interactive_marker_server/CMakeLists.txt

This file was deleted.

13 changes: 0 additions & 13 deletions spot_interactive_marker_server/config/config.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions spot_interactive_marker_server/package.xml

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions spot_viz/launch/view_robot.launch
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<launch>
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find spot_viz)/rviz/robot.rviz" />

<node pkg="interactive_marker_twist_server" type="marker_server" name="twist_marker_server" >
<param name="link_name" value="body" />
<param name="robot_name" value="spot" />
</node>
</launch>

0 comments on commit 81e2fd1

Please sign in to comment.