Skip to content

Commit

Permalink
Updated param names for can yaml and config node
Browse files Browse the repository at this point in the history
  • Loading branch information
IIROB Hardware committed Feb 3, 2019
1 parent 453ebc7 commit 6196314
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/can_ati_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
COMM:
HWComm:
type: 1 # CAN_PEAK_USB
path: /dev/pcan32
baudrate: 0x0 # CANITFBAUD_250K
Expand Down
3 changes: 2 additions & 1 deletion config/socket_can_ati.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CAN:
HWComm:
type: 5 # CANITFTYPE_SOCKET_CAN
path: can0
#baudrate: 0x04 # CANITFBAUD_250K - for socket not needed

FTS:
base_identifier: 0x20
Expand Down
3 changes: 2 additions & 1 deletion launch/config.launch
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0"?>
<launch>

<rosparam command="load" ns="fts" file="$(find ati_force_torque)/config/can_ati_config.yaml"/>
<!-- <rosparam command="load" ns="fts" file="$(find ati_force_torque)/config/can_ati_config.yaml"/> -->
<rosparam command="load" ns="fts" file="$(find ati_force_torque)/config/socket_can_ati_config.yaml"/>

<node pkg="ati_force_torque" type="ati_force_torque_config" name="fts_config" ns="fts" cwd="node" respawn="false" output="screen">
</node>
Expand Down
2 changes: 1 addition & 1 deletion launch/driver_pluginlib.launch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<remap from="robot_description" to="sensor_description" />
</node>

<include ns="fts" file="$(find ati_force_torque)/launch/sensor_parameters_rs485.launch"/>
<include ns="fts" file="$(find ati_force_torque)/launch/sensor_parameters_can_socket.launch"/>

<!-- start FTS Driver Node -->
<node pkg="force_torque_sensor" type="force_torque_sensor_node" name="fts" ns="fts" cwd="node" respawn="false" output="screen">
Expand Down
6 changes: 3 additions & 3 deletions src/force_torque_sensor_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ ForceTorqueConfig::ForceTorqueConfig()
srvSever_Reset_ = nh_.advertiseService("Reset", &ForceTorqueConfig::srvCallback_Reset, this);

// Read data from parameter server
nh_.param<int>("CAN/type", canType, -1);
nh_.param<std::string>("CAN/path", canPath, "");
nh_.param<int>("CAN/baudrate", canBaudrate, -1);
nh_.param<int>("HWComm/type", canType, -1);
nh_.param<std::string>("HWComm/path", canPath, "");
nh_.param<int>("HWComm/baudrate", canBaudrate, -1);
nh_.param<int>("FTS/base_identifier", ftsBaseID, -1);
nh_.param<int>("FTS/future_baudrate", ftsFutureBaudrate, 7);
nh_.param<int>("FTS/future_base_id", ftsFutureBaseID, 0x20);
Expand Down

0 comments on commit 6196314

Please sign in to comment.