浏览代码

Reverting params.yaml and updating code in server_endpoint.md

/fix-file-mode
Devin Miller 4 年前
当前提交
d9643278
共有 2 个文件被更改,包括 5 次插入13 次删除
  1. 2
      tutorials/pick_and_place/ROS/src/niryo_moveit/config/params.yaml
  2. 16
      tutorials/ros_unity_integration/server_endpoint.md

2
tutorials/pick_and_place/ROS/src/niryo_moveit/config/params.yaml


ROS_IP: 172.17.238.250
ROS_IP: 127.0.0.1

16
tutorials/ros_unity_integration/server_endpoint.md


import rospy
from tcp_endpoint.RosTCPServer import TCPServer
from tcp_endpoint.RosPublisher import RosPublisher
from tcp_endpoint.RosSubscriber import RosSubscriber
from tcp_endpoint.RosService import RosService
from ros_tcp_endpoint import TcpServer, RosPublisher, RosSubscriber, RosService
from robotics_demo.msg import PosRot, UnityColor
from robotics_demo.srv import PositionService

buffer_size = rospy.get_param("/TCP_BUFFER_SIZE", 1024)
connections = rospy.get_param("/TCP_CONNECTIONS", 10)
tcp_server = TCPServer(ros_node_name, buffer_size, connections)
tcp_server = TcpServer(ros_node_name, buffer_size, connections)
tcp_server.source_destination_dict = {
'pos_srv': RosService('position_service', PositionService),

## Import Statements for Services and Messages
```python
# TCP Endpoint package imports to enable ROS communication
from tcp_endpoint.RosTCPServer import TCPServer
from tcp_endpoint.RosPublisher import RosPublisher
from tcp_endpoint.RosSubscriber import RosSubscriber
from tcp_endpoint.RosService import RosService
from ros_tcp_endpoint import TcpServer, RosPublisher, RosSubscriber, RosService
# Import specific ROS Messages and Services
from robotics_demo.msg import PosRot, UnityColor
from robotics_demo.srv import PositionService
```

- The ROS node name
```python
tcp_server = TCPServer(ros_node_name)
tcp_server = TcpServer(ros_node_name)
```
## Source Destination Dictionary

正在加载...
取消
保存